Wpf usercontrol dependency property not updating
If no value is found it takes the default value defined in the property metadata. This wrapper does nothing else than internally getting and setting the value by using the Get Value() and Set Value() Methods inherited from Dependency Object and passing the Dependency Property as key.
If not, then you’ve overcomplicated the button logic, and you should just stick with button click event.To create a Dependency Property, add a static field of type to create an instance of a dependency property. If you set the property from XAML the Set Value() method is called directly.