Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InkCanvas.ActiveEditingMode Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the current editing mode of the InkCanvas.

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

public InkCanvasEditingMode ActiveEditingMode { get; }

Property Value

Type: System.Windows.Controls.InkCanvasEditingMode

The current editing mode of the InkCanvas.

The ActiveEditingMode property indicates the current InkCanvasEditingMode of the InkCanvas. Suppose that the EditingMode is set to Ink and the EditingModeInverted is set to EraseByPoint. When the tablet pen is used in an inverted position, ActiveEditingMode has a value of EraseByPoint. Otherwise, its value is Ink.

Identifier field

ActiveEditingModeProperty

Metadata properties set to true

None

The following example reports the value of ActiveEditingMode whenever it changes.

void inkCanvas1_ActiveEditingModeChanged(object sender, RoutedEventArgs e)
{
    this.Title = inkCanvas1.ActiveEditingMode.ToString();
}

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