I was digging a bit around Silverlight Dependency properties, mainly to see how to receive change notification when ever a dependency property is changed. In WPF, this is straight forward, you may use the DependencyPropertyDescriptor, and call AddValueChanged. Like this. DependencyPropertyDescriptor desc = DependencyPropertyDescriptor.FromProperty (UIElement.VisibilityProperty, typeof(UIElement));
desc.AddValueChanged (this.myLabel, new EventHandler(VisibilityChanged)); Now, how to do this ...
1 comment posted.
#1
aeiou260199038
1094 days, 21 hours, 45 minutes ago said:
Like this. DependencyPropertyDescriptor desc = Rolex watchesDependencyPropertyDescriptor.