InkCanvas.EditingModeChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 EditingMode 对象的 InkCanvas 属性更改后发生。
public:
event System::Windows::RoutedEventHandler ^ EditingModeChanged;
public event System.Windows.RoutedEventHandler EditingModeChanged;
member this.EditingModeChanged : System.Windows.RoutedEventHandler
Public Custom Event EditingModeChanged As RoutedEventHandler
事件类型
示例
以下示例检查 属性是 EditingMode 设置为 Ink 还是 Select。
void inkCanvas1_EditingModeChanged(object sender, EventArgs e)
{
if (inkCanvas1.EditingMode == InkCanvasEditingMode.Ink)
{
modeLabel.Text = "Ink";
}
else if (inkCanvas1.EditingMode == InkCanvasEditingMode.Select)
{
modeLabel.Text = "select";
}
}
Private Sub inkCanvas1_EditingModeChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)
If inkCanvas1.EditingMode = InkCanvasEditingMode.Ink Then
modeLabel.Text = "Ink"
ElseIf inkCanvas1.EditingMode = InkCanvasEditingMode.Select Then
modeLabel.Text = "select"
End If
End Sub
注解
此事件在编辑模式更改后发生;更改反映在 的 属性中EditingModeInkCanvas。
路由事件信息
标识符字段 | EditingModeChangedEvent |
路由策略 | 鼓 泡 |
委托 | RoutedEventHandler |