It checks if a local value is available, if not if a custom style trigger is active,... This method resolves the value by using a value resolution strategy that is explained in detail below.
Introduction Value resolution strategy The magic behind it How to create a Depdency Property Readonly Dependency Properties Attached Dependency Properties Listen to dependency property changes How to clear a local value When you begin to develop appliations with WPF, you will soon stumble across Dependency Properties. NET properties, but the concept behind is much more complex and powerful.
The main difference is, that the value of a normal .
Maybe you ask yourself, why not just use a normal . One important reason is that you cannot set triggers on normal . Creating a read only property is similar to creating a regular Dependency Property. This key should be stored in a private or protected static readonly field of your class.
The key gives you access to set the value from within your class and use it like a normal dependency property.
The name of the Dependendy Property must always end with ... If you are using Visual Studio, you can type The change notification callback is a static method, that is called everytime when the value of the Time Property changes.