ApplicationGesture ApplicationGesture ApplicationGesture ApplicationGesture Enum

Definition

Specifies the available application-specific gesture.

public enum class ApplicationGesture
public enum ApplicationGesture
type ApplicationGesture = 
Public Enum ApplicationGesture
Inheritance
ApplicationGestureApplicationGestureApplicationGestureApplicationGesture

Fields

AllGestures AllGestures AllGestures AllGestures 0

Recognizes all application-specific gestures.

ArrowDown ArrowDown ArrowDown ArrowDown 61497

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 ArrowLeft ArrowLeft ArrowLeft 61498

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 ArrowRight ArrowRight ArrowRight 61499

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 ArrowUp ArrowUp ArrowUp 61496

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 Check Check Check 61445

Has no suggested semantic behavior or action. The upward stroke must be twice as long as the smaller downward stroke.

ChevronDown ChevronDown ChevronDown ChevronDown 61489

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 ChevronLeft ChevronLeft ChevronLeft 61490

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 ChevronRight ChevronRight ChevronRight 61491

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 ChevronUp ChevronUp ChevronUp 61488

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 Circle Circle Circle 61472

Has no suggested semantic behavior or action. The circle must be drawn in a single stroke without lifting the pen.

Curlicue Curlicue Curlicue Curlicue 61456

Has no suggested semantic behavior or action. Start the curlicue on the word you intend to cut.

DoubleCircle DoubleCircle DoubleCircle DoubleCircle 61473

Has no suggested semantic behavior or action. The two circles must overlap each other and be drawn in a single stroke without lifting the pen.

DoubleCurlicue DoubleCurlicue DoubleCurlicue DoubleCurlicue 61457

Has no suggested semantic behavior or action. Start the double-curlicue on the word you intend to copy.

DoubleTap DoubleTap DoubleTap DoubleTap 61681

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 Down Down Down 61529

Has no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the downward direction.

DownLeft DownLeft DownLeft DownLeft 61546

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 DownLeftLong DownLeftLong DownLeftLong 61542

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 DownRight DownRight DownRight 61547

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 DownRightLong DownRightLong DownRightLong 61543

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 DownUp DownUp DownUp 61537

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 Exclamation Exclamation Exclamation 61604

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 Left Left Left 61530

Specifies a backspace. This gesture must be drawn as a single fast flick to the left.

LeftDown LeftDown LeftDown LeftDown 61549

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 LeftRight LeftRight LeftRight 61538

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 LeftUp LeftUp LeftUp 61548

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 NoGesture NoGesture NoGesture 61440

Recognizes no application-specific gestures.

Right Right Right Right 61531

Signifies a space. This gesture must be drawn as a single fast flick to the right.

RightDown RightDown RightDown RightDown 61551

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 RightLeft RightLeft RightLeft 61539

Has no suggested semantic behavior or action. 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 RightUp RightUp RightUp 61550

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.

ScratchOut ScratchOut ScratchOut ScratchOut 61441

Erases content. This gesture must be drawn as a single stroke that has at least three back-and-forth motions.

SemicircleLeft SemicircleLeft SemicircleLeft SemicircleLeft 61480

Has no suggested semantic behavior or action. The semicircle must be drawn from left to right. The two ends of the semicircle should be as horizontally even as possible.

SemicircleRight SemicircleRight SemicircleRight SemicircleRight 61481

Has no suggested semantic behavior or action. The semicircle must be drawn from right to left. The two ends of the semicircle should be as horizontally even as possible.

Square Square Square Square 61443

Has no suggested semantic behavior or action. 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 Star Star Star 61444

Has no suggested semantic behavior or action. The star must have exactly five points and be drawn in a single stroke without lifting the pen.

Tap Tap Tap Tap 61680

Signifies a mouse click. For the least amount of slippage, the tap must be made quickly.

Triangle Triangle Triangle Triangle 61442

Has no suggested semantic behavior or action. The triangle must be drawn in a single stroke, without lifting the pen.

Up Up Up Up 61528

Has no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the upward direction.

UpDown UpDown UpDown UpDown 61536

Has no suggested semantic behavior or 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 UpLeft UpLeft UpLeft 61544

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 UpLeftLong UpLeftLong UpLeftLong 61540

Has no suggested semantic behavior or action. 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 UpRight UpRight UpRight 61545

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 UpRightLong UpRightLong UpRightLong 61541

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.

Examples

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;
        }

    }
}
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

Remarks

XAML Text Usage

This class is not typically used in XAML.

Applies to