This is done by combining the desired flags using a bitwise “OR” and then passing that value into the appropriate Dependency Property. As an example, the Width property on Framework Element is registered with the Affects Measure option.
As such, the property engine will take care of invalidating measure on the target element whenever the Width property changes.
The Affects Parent Measure and Affects Parent Arrange flags will cause Invalidate Measure() and Invalidate Arrange() to be called, respectively, on the target element’s parent.
Default is, obviously, the default value of the Update Source Trigger.
This is a much more user friendly display and will do just fine in some cases, but relying on a simple string is not that flexible.
Perhaps you want a part of the text to be bold or another color? Fortunately, WPF makes all of this very simple using templates.
In the previous article we saw how changes in a Text Box was not immediately sent back to the source.
Instead, the source was updated only after focus was lost on the Text Box.