Omer van Kloeten's .NET Zen

Programming is life, the rest is mere details

News

Omer van Kloeten's Facebook profile

Get Firefox

.NET Resources

Articles :: CodeDom

Articles :: nGineer

Culture

Projects

Registering to a DependencyProperty's Change Event

how to correctly get notifications for the changes in dependency property values.

In a nutshell:

DependencyPropertyDescriptor prop = DependencyPropertyDescriptor.FromProperty(
MyType.MyDependencyProperty,
typeof(MyType));

prop.AddValueChanged(this, this.OnMyDependencyPropertyChanged);

 

Comments

Nodir Turakulov said:

Thank you!

# April 21, 2008 8:31 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)