ApplicationGesture Enumeration
.NET Framework 3.0
Specifies the available application-specific gesture.
Namespace: System.Windows.Ink
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
| Member name | Description | |
|---|---|---|
| AllGestures | Recognizes all application-specific gestures. | |
| ArrowDown | Has no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. | |
| ArrowLeft | Has no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. | |
| ArrowRight | Has no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. | |
| ArrowUp | Has no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. | |
| Check | Denotes a check-off. The upward stroke must be twice as long as the smaller downward stroke. | |
| ChevronDown | Has no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. | |
| ChevronLeft | Has no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. | |
| ChevronRight | Has no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. | |
| ChevronUp | Has no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. | |
| Circle | Has no suggested semantic behavior or action. The circle must be drawn in a single stroke without lifting the pen. | |
| Curlicue | Cuts a word. Start the curlicue on the word you intend to cut. | |
| DoubleCircle | Pastes a selection. The two circles must overlap each other and be drawn in a single stroke without lifting the pen. | |
| DoubleCurlicue | Copies a word. Start the double-curlicue on the word you intend to copy. | |
| DoubleTap | Signifies a mouse double-click. The two taps must be made quickly to result in the least amount of slippage and the least duration between taps. In addition, the taps must be as close to each other as possible. | |
| Down | Has no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the downward direction. | |
| DownLeft | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two sides must be as equal in length as possible and at a right angle. | |
| DownLeftLong | Signifies pressing an ENTER key. This gesture must be drawn in a single stroke starting with the down stroke. The left stroke is about twice as long as the up stroke, and the two strokes must be at a right angle. | |
| DownRight | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two sides must be as equal in length as possible and at a right angle. | |
| DownRightLong | Signifies pressing the spacebar. This gesture must be drawn in a single stroke starting with the down stroke. The right stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. | |
| DownUp | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two strokes must be as close to each other as possible. | |
| Exclamation | Has no suggested semantic behavior or action. The line must be drawn first and then the dot drawn quickly and as close to the line as possible. | |
| Left | Specifies a backspace. This gesture must be drawn as a single fast flick to the left. | |
| LeftDown | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the left stroke. The two sides are as equal in length as possible and at a right angle. | |
| LeftRight | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the left stroke. The two sides are as equal in length as possible and at a right angle. | |
| LeftUp | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the left stroke. The two sides must be as equal in length as possible and at a right angle. | |
| NoGesture | Recognizes no application-specific gestures. | |
| Right | Signifies a space. This gesture must be drawn as a single fast flick to the right. | |
| RightDown | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the right stroke. The two sides must be as equal in length as possible and at a right angle. | |
| RightLeft | Copies a selection. This gesture must be drawn in a single stroke starting with the right stroke. The two strokes must be as close to each other as possible. | |
| RightUp | Signifies an Input Method Editor (IME) convert. This gesture must be drawn in a single stroke starting with the right stroke. The two sides must be as equal in length as possible and at a right angle. | |
| ScratchOut | Erases content. This gesture must be drawn as a single stroke that has at least three back-and-forth motions. | |
| SemicircleLeft | Undoes an action. The semicircle must be drawn from left to right. The two ends of the semicircle should be as horizontally even as possible. | |
| SemicircleRight | Redoes an action. The semicircle must be drawn from right to left. The two ends of the semicircle should be as horizontally even as possible. | |
| Square | Marks an action item. The square can be drawn in one or two strokes. In one stroke, draw the entire square without lifting the pen. In two strokes, draw three sides of the square and use another stroke to draw the remaining side. Do not use more than two strokes to draw the square. | |
| Star | Marks an action item. The star must have exactly five points and be drawn in a single stroke without lifting the pen. | |
| Tap | Signifies a mouse click. For the least amount of slippage, the tap must be made quickly. | |
| Triangle | Inserts input. The triangle must be drawn in a single stroke, without lifting the pen. | |
| Up | Has no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the upward direction. | |
| UpDown | Undoes an action. This gesture must be drawn in a single stroke starting with the up stroke. The two strokes must be as close to each other as possible. | |
| UpLeft | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the up stroke. The two sides must be as equal in length as possible and at a right angle. | |
| UpLeftLong | Decreases the indent. This gesture must be drawn in a single stroke starting with the up stroke. The left stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. | |
| UpRight | Has no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the up stroke. The two sides must be as equal in length as possible and at a right angle. | |
| UpRightLong | Signifies pressing a TAB key. This gesture must be drawn in a single stroke starting with the up stroke. The right stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. |
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.
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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: