ExtensionMethods::AddPropertyChangeHandler<T> Method (T, DependencyProperty^, EventHandler^, Type^)

 

Adds a handler that is called when property changes on instance.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
generic<typename T>
where T : DependencyObject
[ExtensionAttribute]
static void AddPropertyChangeHandler(
	T instance,
	DependencyProperty^ property,
	EventHandler^ handler,
	Type^ targetType
)

Parameters

instance
Type: T

The instance whose property change will be handled.

property
Type: System.Windows::DependencyProperty^

The property whose change will be handled.

handler
Type: System::EventHandler^

The handler.

targetType
Type: System::Type^

The type of the object on which property is set.

Type Parameters

T

The type of object being bound.

Return to top
Show: