Share via


WheelGestureData Class

Provides gesture data about the mouse wheel.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class WheelGestureData _
    Inherits GestureData
public class WheelGestureData : GestureData
public ref class WheelGestureData : public GestureData
type WheelGestureData =  
    class
        inherit GestureData
    end
public class WheelGestureData extends GestureData

The WheelGestureData type exposes the following members.

Constructors

  Name Description
Public method WheelGestureData(EditingContext, ModelItem, ModelItem, Int32) Initializes a new instance of the WheelGestureData class.
Public method WheelGestureData(EditingContext, ModelItem, ModelItem, Int32, DependencyObject, DependencyObject) Initializes a new instance of the WheelGestureData class.

Top

Properties

  Name Description
Public property Adorners Gets the adorner collection for the designer view stored in the context. (Inherited from GestureData.)
Public property Context Gets the editing context associated with this gesture data. (Inherited from GestureData.)
Public property Delta Gets the scroll delta from the mouse scroll wheel.
Public property ImpliedSource Gets the model that is the source of this gesture. (Inherited from GestureData.)
Public property ImpliedTarget Gets the model that is the target of this gesture. (Inherited from GestureData.)
Public property SourceAdorner Gets the source adorner in the view. (Inherited from GestureData.)
Public property SourceModel Gets the object that is the source of this gesture. (Inherited from GestureData.)
Public property TargetAdorner Gets the target adorner in the view. (Inherited from GestureData.)
Public property TargetModel Gets the object that is the target of this gesture. (Inherited from GestureData.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member FromEventArgs(CanExecuteToolEventArgs) Provides a WheelGestureData object from an CanExecuteToolEventArgs object.
Public methodStatic member FromEventArgs(ExecutedToolEventArgs) Provides a WheelGestureData object from an ExecutedToolEventArgs object.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Gesture data is provided when a gesture occurs from rolling the mouse wheel. The main data-providing property is Delta, which indicates the distance the mouse wheel has traveled.

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

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility