DrawingAttributes.OnAttributeChanged Method (PropertyDataChangedEventArgs)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Raises the AttributeChanged event.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

protected virtual void OnAttributeChanged(
	PropertyDataChangedEventArgs e


Type: System.Windows.Ink.PropertyDataChangedEventArgs

A PropertyDataChangedEventArgs that contains the event data.

Exception Condition

e is null.

Raising an event invokes the event handler through a delegate.

The OnAttributeChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors:

When overriding OnAttributeChanged in a derived class, call the OnAttributeChanged method for the base class to ensure that registered delegates receive the event.

.NET Framework
Available since 3.0
Return to top