DependencyProperty not triggered

The setter of your dependency property will not be called when the property is set in XAML. WPF will instead call the SetValue method directly.

See MSDN XAML Loading and Dependency Properties for an explanation why the setter is not called.

You would have to register a PropertyChangedCallback with property metadata.

Leave a Comment