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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET