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
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.