Share via


DragGestureData Class

Provides additional information during a drag-and-drop operation.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class DragGestureData _
    Inherits MouseGestureData
public class DragGestureData : MouseGestureData
public ref class DragGestureData : public MouseGestureData
type DragGestureData =  
    class
        inherit MouseGestureData
    end
public class DragGestureData extends MouseGestureData

The DragGestureData type exposes the following members.

Constructors

  Name Description
Public method DragGestureData(EditingContext, ModelItem, ModelItem, Visual, Point, Point, DragDropEffects, IDataObject) Initializes a new instance of the DragGestureData class.
Public method DragGestureData(EditingContext, ModelItem, ModelItem, Visual, Point, Point, DragDropEffects, IDataObject, DependencyObject, DependencyObject) Initializes a new instance of the DragGestureData 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 AllowedEffects Gets the set of allowed drag-and-drop effects.
Public property Context Gets the editing context associated with this gesture data. (Inherited from GestureData.)
Public property CurrentPosition Gets the current position of the mouse. (Inherited from MouseGestureData.)
Public property Data Gets the data passed in for the drag-and-drop operation.
Public property Effects Gets or sets the current drag-and-drop effects.
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 PositionDelta Gets the offset between starting and ending positions. (Inherited from MouseGestureData.)
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 StartPosition Gets the starting position of the mouse. (Inherited from MouseGestureData.)
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 simple utility that returns a DragGestureData object from a CanExecuteToolEventArgs object.
Public methodStatic member FromEventArgs(ExecutedToolEventArgs) Provides a simple utility that returns a DragGestureData 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.)
Public method TranslatePoint Translates the specified point to the coordinate system of the visual for the specified model. (Inherited from MouseGestureData.)

Top

Remarks

This class derives from MouseGestureData and provides additional gesture data for drag-and-drop operations.

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