共用方式為


InkCanvas.EditingModeInvertedChanged 事件

定義

EditingModeInverted 物件的 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 

事件類型

RoutedEventHandler

範例

下列範例會檢查 屬性是否 EditingModeInverted 設定為 EraseByPointEraseByStroke

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

備註

此事件會在反向編輯模式變更之後發生。 這些變更會反映在 的 InkCanvas 屬性中 EditingModeInverted

路由事件資訊

識別碼欄位 EditingModeInvertedChangedEvent
路由策略 鼓 泡
代理人 RoutedEventHandler

適用於