InkCanvas.GetEnabledGestures Method ()

 

Returns a collection of application gestures that are recognized by InkCanvas.

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

Public Function GetEnabledGestures As ReadOnlyCollection(Of ApplicationGesture)

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection(Of ApplicationGesture)

A collection of gestures that the InkCanvas recognizes.

Exception Condition
InvalidOperationException

The IsGestureRecognizerAvailable property is false.

The following example demonstrates how to get the enabled application gestures from the InkCanvas.

Dim enabledGestures As ReadOnlyCollection(Of ApplicationGesture) = _
                    inkCanvas1.GetEnabledGestures()

.NET Framework
Available since 3.0
Return to top
Show: