GestureRecognizer.SetEnabledGestures Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the application gestures that the GestureRecognizer recognizes.
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))
Parameters
- applicationGestures
- IEnumerable<ApplicationGesture>
An array of type ApplicationGesture that specifies the application gestures you wish the GestureRecognizer to 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();
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)
Applies to
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.