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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.