How to attach a ChangeEvent handler to an inherited dependency property?

Question :

How to attach a ChangeEvent handler to an inherited dependency property?,

Answer :

How would you attach a propertychanged callback to a property that is inherited? Like such:

class A {    DependencyProperty prop;  }    class B : A {     //...     prop.AddListener(PropertyChangeCallback);  }

,

(edited to remove recommendation to use DependencyPropertyDescriptor, which is not available in Silverlight)

That’s the answer How to attach a ChangeEvent handler to an inherited dependency property?, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Read More  Caching compiled regex objects in Python?

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you