InkCanvas.ActiveEditingModeChanged 事件

定义

在当前编辑模式改变时发生。

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

事件类型

示例

以下示例在 更改时报告 的值 ActiveEditingMode

void inkCanvas1_ActiveEditingModeChanged(object sender, RoutedEventArgs e)
{
    this.Title = inkCanvas1.ActiveEditingMode.ToString();
}
Private Sub inkCanvas1_ActiveEditingModeChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)

    Me.Title = inkCanvas1.ActiveEditingMode.ToString()

End Sub

注解

每当 ActiveEditingMode 进入新的编辑模式时, InkCanvas 属性将更改。 例如,假设 EditingMode 设置为 Ink ,并将 EditingModeInverted 设置为 EraseByPoint。 当用户更改平板电脑笔尖时,将发生事件 ActiveEditingModeChanged

路由事件信息

标识符字段 ActiveEditingModeChangedEvent
路由策略 鼓 泡
委托 RoutedEventHandler

适用于

另请参阅