RecognitionConfidence Enumeration
Specifies the confidence level that the GestureRecognizer determines for a particular ink gesture.
Assembly: PresentationCore (in PresentationCore.dll)
| Member name | Description | |
|---|---|---|
| Intermediate | Indicates intermediate confidence in the recognition result. | |
| Poor | Indicates poor confidence in the recognition result. | |
| Strong | Indicates strong confidence in the recognition result. |
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 this example.
void inkCanvas1_Gesture(object sender, InkCanvasGestureEventArgs e) { ReadOnlyCollection<GestureRecognitionResult> gestureResults = e.GetGestureRecognitionResults(); // Check the first recognition result for a gesture. if (gestureResults[0].RecognitionConfidence == RecognitionConfidence.Strong) { switch (gestureResults[0].ApplicationGesture) { case ApplicationGesture.Down: // Do something. break; case ApplicationGesture.ArrowDown: // Do something. break; case ApplicationGesture.Circle: // Do something. break; } } }
Available since 3.0