WPF: XAML property declarations not being set via Setters?

The “CLR-wrappers” for dependency properties only get called when done through code. XAML depends on the name specified in the DependencyProperty.Register(…) call. So, instead of “extending” the logic of the setter for your dependency property like you did above, just put your custom logic in a PropertyChangedCallback function.

Leave a Comment