संपादित करें

इसके माध्यम से साझा किया गया


GestureRecognizer Constructors

Definition

Initializes a new instance of the GestureRecognizer class.

Overloads

GestureRecognizer()

Initializes a new instance of the GestureRecognizer class.

GestureRecognizer(IEnumerable<ApplicationGesture>)

Initializes a new instance of the GestureRecognizer class.

GestureRecognizer()

Initializes a new instance of the GestureRecognizer class.

public:
 GestureRecognizer();
public GestureRecognizer ();
Public Sub New ()

Remarks

When it is created with this constructor, the GestureRecognizer recognizes all application gestures.

Applies to

GestureRecognizer(IEnumerable<ApplicationGesture>)

Initializes a new instance of the GestureRecognizer class.

public:
 GestureRecognizer(System::Collections::Generic::IEnumerable<System::Windows::Ink::ApplicationGesture> ^ enabledApplicationGestures);
public GestureRecognizer (System.Collections.Generic.IEnumerable<System.Windows.Ink.ApplicationGesture> enabledApplicationGestures);
new System.Windows.Ink.GestureRecognizer : seq<System.Windows.Ink.ApplicationGesture> -> System.Windows.Ink.GestureRecognizer
Public Sub New (enabledApplicationGestures As IEnumerable(Of ApplicationGesture))

Parameters

enabledApplicationGestures
IEnumerable<ApplicationGesture>

An array of type ApplicationGesture that specifies the application gestures the GestureRecognizer will recognize.

Examples

The following example demonstrates how to create a GestureRecognizer that recognizes only the Down, Right, and ScratchOut gestures.

ApplicationGesture[] gestures = {ApplicationGesture.Down,
    ApplicationGesture.Right, ApplicationGesture.ScratchOut};

GestureRecognizer recognizer = new GestureRecognizer(gestures);
' Declare and initialize an array of application gestures.
Dim gestures As ApplicationGesture() = _
    {ApplicationGesture.Down, _
     ApplicationGesture.Right, _
     ApplicationGesture.Scratchout}

Dim recognizer As New GestureRecognizer(gestures)

Remarks

Use the GestureRecognizer constructor to create a GestureRecognizer that recognizes a subset of the application gestures.

Applies to