Editar

Compartir a través de


InkCanvas.EditingModeInvertedChanged Event

Definition

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

public:
 event System::Windows::RoutedEventHandler ^ EditingModeInvertedChanged;
public event System.Windows.RoutedEventHandler EditingModeInvertedChanged;
member this.EditingModeInvertedChanged : System.Windows.RoutedEventHandler 
Public Custom Event EditingModeInvertedChanged As RoutedEventHandler 

Event Type

Examples

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";
    }
}
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

Remarks

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

Routed Event Information

Identifier field EditingModeInvertedChangedEvent
Routing strategy Bubbling
Delegate RoutedEventHandler

Applies to