Compartir vía


InkCanvas.EditingModeInvertedChanged Evento

Definición

Se produce cuando se ha modificado la propiedad EditingModeInverted de un objeto InkCanvas.

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

Tipo de evento

RoutedEventHandler

Ejemplos

En el ejemplo siguiente se comprueba si la EditingModeInverted propiedad está establecida EraseByPoint en o 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

Comentarios

Este evento se produce después de cambiar el modo de edición invertido. Estos cambios se reflejan en la EditingModeInverted propiedad de InkCanvas.

Información sobre eventos enrutados

Campo identificador EditingModeInvertedChangedEvent
Estrategia de enrutamiento Burbujeante
Delegado RoutedEventHandler

Se aplica a