I have a control which inherits from (you guessed it) Control.
I want to receive a notification whenever the FontSize
or Style
properties are changed. In WPF, I would do that by calling DependencyProperty.OverrideMetadata()
. Of course, useful things like that have no place in Silverlight. So, how might one receive those kinds of notifications?
Silverlight: How to receive notification of a change in an inherited DependencyProperty
dependency-propertiessilverlight
Best Solution
I think here is a better way. Still need to see the pros and Cons.
And now, you can call RegisterForNotification to register for a change notification of a property of an element, like .
See my post here on the same http://amazedsaint.blogspot.com/2009/12/silverlight-listening-to-dependency.html
Using Silverlight 4.0 beta.