Delen via


GestureData Class

Provides information about a gesture.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Class GestureData
'Usage
Dim instance As GestureData
public class GestureData
public ref class GestureData
public class GestureData

Remarks

Typically, command bindings are unaware of the gesture that triggered the command. This is possible because gestures are generally single actions without any dependencies on prior gestures. For designers, however, rich interaction is required. Therefore, a command may need to know additional information about the input gesture that triggered it. This additional information is provided by the GestureData class, and those classes that derive from it.

The GestureData class provides information about the current editing context through the Context property. Information about the source and target for this gesture is provided through the SourceModel, TargetModel, SourceAdorner, and TargetAdorner properties.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Interaction.GestureData
    Microsoft.Windows.Design.Interaction.MouseGestureData
    Microsoft.Windows.Design.Interaction.WheelGestureData

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

GestureData Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility