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 RoutedEventHandler EditingModeInvertedChanged

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.

void inkCanvas1_EditingModeInvertedChanged(object sender, EventArgs e)
{
    if (inkCanvas1.EditingModeInverted == InkCanvasEditingMode.EraseByPoint)
    {
        erasingModeLabel.Text = "Erase by point";
    }
    else if (inkCanvas1.EditingModeInverted == InkCanvasEditingMode.EraseByStroke)
    {
        erasingModeLabel.Text = "Erase by stroke";
    }
}

.NET Framework
Available since 3.0
Return to top
Show: