9
Shouts

Silverlight : Listening to Dependency Property Change notification of a given Element

published 1269 days, 20 hours, 25 minutes ago posted by http://amazedsaint.blogspot.com/http://amazedsaint.blogspot.com/ 1270 days, 8 hours, 43 minutes ago
Thursday, December 03, 2009 9:06:40 AM GMT Wednesday, December 02, 2009 8:48:25 PM GMT

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 ...

category: Metro | clicked: 4 | | source: amazedsaint.blogspot.com | show counter code
tags: Silverlight, .NET 3.5 SP1, C#

1 comment posted.

To post your comment please login or signup