Share via


DragGestureData Constructor (EditingContext, ModelItem, ModelItem, Visual, Point, Point, DragDropEffects, IDataObject, DependencyObject, DependencyObject)

Initializes a new instance of the DragGestureData class.

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

Syntax

'Declaration
Public Sub New ( _
    context As EditingContext, _
    sourceModel As ModelItem, _
    targetModel As ModelItem, _
    coordinateReference As Visual, _
    startPosition As Point, _
    currentPosition As Point, _
    allowedEffects As DragDropEffects, _
    data As IDataObject, _
    sourceAdorner As DependencyObject, _
    targetAdorner As DependencyObject _
)
public DragGestureData(
    EditingContext context,
    ModelItem sourceModel,
    ModelItem targetModel,
    Visual coordinateReference,
    Point startPosition,
    Point currentPosition,
    DragDropEffects allowedEffects,
    IDataObject data,
    DependencyObject sourceAdorner,
    DependencyObject targetAdorner
)
public:
DragGestureData(
    EditingContext^ context, 
    ModelItem^ sourceModel, 
    ModelItem^ targetModel, 
    Visual^ coordinateReference, 
    Point startPosition, 
    Point currentPosition, 
    DragDropEffects allowedEffects, 
    IDataObject^ data, 
    DependencyObject^ sourceAdorner, 
    DependencyObject^ targetAdorner
)
new : 
        context:EditingContext * 
        sourceModel:ModelItem * 
        targetModel:ModelItem * 
        coordinateReference:Visual * 
        startPosition:Point * 
        currentPosition:Point * 
        allowedEffects:DragDropEffects * 
        data:IDataObject * 
        sourceAdorner:DependencyObject * 
        targetAdorner:DependencyObject -> DragGestureData
public function DragGestureData(
    context : EditingContext, 
    sourceModel : ModelItem, 
    targetModel : ModelItem, 
    coordinateReference : Visual, 
    startPosition : Point, 
    currentPosition : Point, 
    allowedEffects : DragDropEffects, 
    data : IDataObject, 
    sourceAdorner : DependencyObject, 
    targetAdorner : DependencyObject
)

Parameters

  • coordinateReference
    Type: System.Windows.Media.Visual
    The input element representing the coordinate reference for the points. This should be an element that never moves around, such as the DesignerView class.
  • startPosition
    Type: System.Windows.Point
    The position of the mouse when the gesture was first initiated.
  • sourceAdorner
    Type: System.Windows.DependencyObject
    The source adorner to associate with the gesture, if it exists. This parameter can be nulla null reference (Nothing in Visual Basic).
  • targetAdorner
    Type: System.Windows.DependencyObject
    The target adorner to associate with the gesture, if it exists. This parameter can be nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

DragGestureData Class

DragGestureData Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility