Sdílet prostřednictvím


DragGestureData – konstruktor (EditingContext, ModelItem, ModelItem, Visual, Point, Point, DragDropEffects, IDataObject, DependencyObject, DependencyObject)

Inicializuje novou instanci DragGestureData Třída

Obor názvů:  Microsoft.Windows.Design.Interaction
Sestavení:  Microsoft.Windows.Design.Interaction (v Microsoft.Windows.Design.Interaction.dll)

Syntaxe

'Deklarace
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
)

Parametry

  • coordinateReference
    Typ: System.Windows.Media.Visual
    Vstupní prvek představující souřadnice referenční body.To by měla být element, který nikdy pohybu, například DesignerView Třída
  • sourceAdorner
    Typ: System.Windows.DependencyObject
    Adorner zdroj přidružit gesto, pokud existuje.Tento parametr může být nullodkaz Null (Nothing v jazyce Visual Basic).
  • targetAdorner
    Typ: System.Windows.DependencyObject
    Adorner cíl přidružit gesto, pokud existuje.Tento parametr může být nullodkaz Null (Nothing v jazyce Visual Basic).

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

DragGestureData Třída

DragGestureData – přetížení

Microsoft.Windows.Design.Interaction – obor názvů

Další zdroje

Understanding WPF Designer Extensibility