InkCanvas.EditingModeInvertedChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the EditingModeInverted property of an InkCanvas object has been changed.
public:
event System::Windows::RoutedEventHandler ^ EditingModeInvertedChanged;
public event System.Windows.RoutedEventHandler EditingModeInvertedChanged;
member this.EditingModeInvertedChanged : System.Windows.RoutedEventHandler
Public Custom Event EditingModeInvertedChanged As RoutedEventHandler
Event Type
Examples
The following example checks whether the EditingModeInverted property is set to EraseByPoint or 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
Remarks
This event occurs after the inverted editing mode has been changed. These changes are reflected in the EditingModeInverted property of the InkCanvas.
Routed Event Information
Item | Value |
---|---|
Identifier field | EditingModeInvertedChangedEvent |
Routing strategy | Bubbling |
Delegate | RoutedEventHandler |
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET