Export (0) Print
Expand All

InkCanvasGestureEventArgs.GetGestureRecognitionResults Method

Returns results from the gesture recognizer.

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

public ReadOnlyCollection<GestureRecognitionResult> GetGestureRecognitionResults()

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<GestureRecognitionResult>
A collection of possible application gestures that the Strokes might be.

The collection returned by the GetGestureRecognitionResults method is sorted by the GestureRecognitionResult.RecognitionConfidence property. For example, GetGestureRecognitionResults might return a collection of GestureRecognitionResult objects with the following values:

Index

ApplicationGesture

RecognitionConfidence

0

Check

Strong

1

NoGesture

Intermediate

2

Curlicue

Poor

3

DoubleCurlicue

Poor

This means that the GestureRecognizer recognizes that it is very likely that the Stroke is a check mark, relatively likely that the Stroke in not a gesture, and not at all likely that the Stroke is a curlicue or a double curlicue.

NoteNote

The GetGestureRecognitionResults method can return an array with NoGesture with a higher degree of RecognitionConfidence than it has for other application gestures. This means that it is more likely that the Stroke is not a gesture, as opposed to a gesture that has a lower RecognitionConfidence.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft