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 AttributeChanged As PropertyDataChangedEventHandler

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.

Private Sub inkDA_AttributeChanged(ByVal sender As Object, _
                                  ByVal e As PropertyDataChangedEventArgs)

    If (e.PropertyGuid = DrawingAttributeIds.Color) Then
        Me.Title = "The pen color is: " + e.NewValue.ToString()
    End If

End Sub

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