Compartilhar via


Construtor DragGestureData (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 (em Microsoft.Windows.Design.Interaction.dll)

Sintaxe

'Declaração
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
)

Parâmetros

  • coordinateReference
    Tipo: System.Windows.Media.Visual
    O elemento input que representa a referência para os pontos de coordenada.Isso deve ser um elemento que nunca move, como o DesignerView classe.
  • startPosition
    Tipo: System.Windows.Point
    A posição do mouse quando o gesto foi iniciado pela primeira vez.
  • sourceAdorner
    Tipo: System.Windows.DependencyObject
    O adorno de origem para associar o gesto, se ele existir.Esse parâmetro pode ser nulluma referência nula (Nothing no Visual Basic).
  • targetAdorner
    Tipo: System.Windows.DependencyObject
    O adorno de destino para associar o gesto, se ele existir.Esse parâmetro pode ser nulluma referência nula (Nothing no Visual Basic).

Segurança do .NET Framework

Consulte também

Referência

DragGestureData Classe

Sobrecargas DragGestureData

Namespace Microsoft.Windows.Design.Interaction

Outros recursos

Noções básicas sobre extensibilidade Designer WPF