GestureRecognitionResult Class
Contains information about an ink gesture.
Assembly: PresentationCore (in PresentationCore.dll)
The GestureRecognitionResult type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ApplicationGesture | Gets the recognized ink gesture. |
![]() | RecognitionConfidence | Gets the level of confidence that the GestureRecognizer has in the recognition of the gesture. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
A GestureRecognitionResult contains an ApplicationGesture and the level of likeliness that the GestureRecognizer correctly identified the gesture.
Use the RecognitionConfidence property to determine the level of likeliness that the GestureRecognizer correctly identified the gesture.
The following example demonstrates how to identify a gesture on an InkCanvas. This example assumes that there is an InkCanvas called inkCanvas1 and that its Gesture event has been connected to the event handler in the code.
Sub inkCanvas1_Gesture(ByVal sender As Object, _ ByVal e As InkCanvasGestureEventArgs) Handles inkCanvas1.Gesture Dim gestureResults As ReadOnlyCollection(Of GestureRecognitionResult) gestureResults = e.GetGestureRecognitionResults() ' Check the first recognition result for a gesture. If gestureResults(0).RecognitionConfidence = _ RecognitionConfidence.Strong Then Select Case gestureResults(0).ApplicationGesture Case ApplicationGesture.Down ' Do something. Case ApplicationGesture.ArrowDown ' Do something. Case ApplicationGesture.Circle ' Do something. End Select End If End Sub 'inkCanvas1_Gesture
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.


