InkCanvas.EditingModeInvertedChanged Event

 
System_CAPS_noteNote

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

Occurs when the EditingModeInverted property of an InkCanvas object has been changed.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Event EditingModeInvertedChanged As RoutedEventHandler

This event occurs after the inverted editing mode has been changed. These changes are reflected in the EditingModeInverted property of the InkCanvas.

The following example checks whether the EditingModeInverted property is set to EraseByPoint or EraseByStroke.

Private Sub inkCanvas1_EditingModeInvertedChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)

    If inkCanvas1.EditingModeInverted = InkCanvasEditingMode.EraseByPoint Then
        erasingModeLabel.Text = "Erase by point"
    ElseIf inkCanvas1.EditingModeInverted = InkCanvasEditingMode.EraseByStroke Then
        erasingModeLabel.Text = "Erase by stroke"
    End If

End Sub 'inkCanvas1_EditingModeInvertedChanged

.NET Framework
Available since 3.0
Return to top
Show: