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

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) = _

.NET Framework
Available since 3.0
Return to top