Senin, 30 Agustus 2010

Listening to DependencyProperty changes in Silverlight

The dependency property system is a pretty nice concept. Receiving notifications for dependency property changes on an existing object is a very common scenario in order to update my view model or the UI. This is quite easy in WPF:// get the property descriptorDependencyPropertyDescriptor prop = DependencyPropertyDescriptor.FromProperty(TextBox.TextProperty, myTextBox.GetType()); // add change

Tidak ada komentar:

Posting Komentar