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
Identifier field | EditingModeInvertedChangedEvent |
Routing strategy | Bubbling |
Delegate | RoutedEventHandler |
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.