InkCanvas.EditingModeChanged 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 EditingMode property of an InkCanvas object has been changed.
public:
event System::Windows::RoutedEventHandler ^ EditingModeChanged;
public event System.Windows.RoutedEventHandler EditingModeChanged;
member this.EditingModeChanged : System.Windows.RoutedEventHandler
Public Custom Event EditingModeChanged As RoutedEventHandler
Event Type
Examples
The following example checks whether the EditingMode property is set to Ink or 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
Remarks
This event occurs after the editing mode has been changed; the changes are reflected in the EditingMode property of the InkCanvas.
Routed Event Information
Identifier field | EditingModeChangedEvent |
Routing strategy | Bubbling |
Delegate | RoutedEventHandler |
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.