AttributeChanged Event
Collapse the table of content
Expand the table of content

DrawingAttributes.AttributeChanged Event

 

Occurs when a property in the DrawingAttributes object changes.

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

public event PropertyDataChangedEventHandler AttributeChanged

The following example handles the AttributeChanged event. This example assumes that there is a DrawingAttributes object called inkDA and that the AttributeChanged event is connected to the event handler defined in this example.

void inkDA_AttributeChanged(object sender, PropertyDataChangedEventArgs e)
{
    if (e.PropertyGuid == DrawingAttributeIds.Color)
    {
        this.Title = "The pen color is: " + e.NewValue.ToString();
    }
}

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft