I am extending a textblock element, and in the specific I have to detect changes of its ForegroundProperty.
How can I do this ?
for a custom property I write something like this:
public static readonly DependencyProperty MyProperty = DependencyProperty.RegisterAttached("Property", typeof(bool), typeof(MyClass), new PropertyMetadata(false, PropertyChanged));
What if a property already exists?
Thank you