InkCanvas.EditingModeChanged Event

 

Occurs when the EditingMode property of an InkCanvas object has been changed.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Event EditingModeChanged As RoutedEventHandler

This event occurs after the editing mode has been changed; the changes are reflected in the EditingMode property of the InkCanvas.

Identifier field

EditingModeChangedEvent

Routing strategy

Bubbling

Delegate

RoutedEventHandler

The following example checks whether the EditingMode property is set to Ink or 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 'inkCanvas1_EditingModeChanged

.NET Framework
Available since 3.0
Return to top
Show: