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
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.