InkCanvas.EditingModeInvertedChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 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
事件类型
示例
以下示例检查属性是设置为EraseByPointEraseByStroke还是EditingModeInverted设置为 。
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
注解
在更改倒排编辑模式后发生此事件。 这些更改反映在 EditingModeInverted 属性中 InkCanvas。
路由事件信息
标识符字段 | EditingModeInvertedChangedEvent |
路由策略 | 鼓 泡 |
委托 | RoutedEventHandler |