GestureRecognizer.SetEnabledGestures Metodo

Definizione

Imposta i movimenti dell'applicazione riconosciuti dall'oggetto GestureRecognizer.

public:
 void SetEnabledGestures(System::Collections::Generic::IEnumerable<System::Windows::Ink::ApplicationGesture> ^ applicationGestures);
public void SetEnabledGestures (System.Collections.Generic.IEnumerable<System.Windows.Ink.ApplicationGesture> applicationGestures);
member this.SetEnabledGestures : seq<System.Windows.Ink.ApplicationGesture> -> unit
Public Sub SetEnabledGestures (applicationGestures As IEnumerable(Of ApplicationGesture))

Parametri

applicationGestures
IEnumerable<ApplicationGesture>

Matrice di tipo ApplicationGesture che specifica i movimenti dell'applicazione che si desidera vengano riconosciuti dall'oggetto GestureRecognizer.

Esempio

Nell'esempio seguente viene illustrato come creare un GestureRecognizer oggetto che riconosce solo i Downmovimenti , Righte ScratchOut .

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

GestureRecognizer recognizer = new GestureRecognizer();

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

Dim recognizer As New GestureRecognizer()

recognizer.SetEnabledGestures(gestures)

Si applica a