EditingModeChanged Event

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 RoutedEventHandler EditingModeChanged

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.

void inkCanvas1_EditingModeChanged(object sender, EventArgs e)
{
    if (inkCanvas1.EditingMode == InkCanvasEditingMode.Ink)
    {
        modeLabel.Text = "Ink";
    }
    else if (inkCanvas1.EditingMode == InkCanvasEditingMode.Select)
    {
        modeLabel.Text = "select";
    }
}

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft