DragGestureData-Konstruktor (EditingContext, ModelItem, ModelItem, Visual, Point, Point, DragDropEffects, IDataObject)
Initialisiert eine neue Instanz der DragGestureData-Klasse.
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 _
)
public DragGestureData(
EditingContext context,
ModelItem sourceModel,
ModelItem targetModel,
Visual coordinateReference,
Point startPosition,
Point currentPosition,
DragDropEffects allowedEffects,
IDataObject data
)
public:
DragGestureData(
EditingContext^ context,
ModelItem^ sourceModel,
ModelItem^ targetModel,
Visual^ coordinateReference,
Point startPosition,
Point currentPosition,
DragDropEffects allowedEffects,
IDataObject^ data
)
new :
context:EditingContext *
sourceModel:ModelItem *
targetModel:ModelItem *
coordinateReference:Visual *
startPosition:Point *
currentPosition:Point *
allowedEffects:DragDropEffects *
data:IDataObject -> DragGestureData
public function DragGestureData(
context : EditingContext,
sourceModel : ModelItem,
targetModel : ModelItem,
coordinateReference : Visual,
startPosition : Point,
currentPosition : Point,
allowedEffects : DragDropEffects,
data : IDataObject
)
Parameter
- context
Typ: Microsoft.Windows.Design.EditingContext
Der Bearbeitungskontext, der diese Bewegungsdaten besitzt.
- sourceModel
Typ: Microsoft.Windows.Design.Model.ModelItem
Das Modell, bei dem die Bewegung begonnen hat.
- targetModel
Typ: Microsoft.Windows.Design.Model.ModelItem
Das Modell, über dem sich die Bewegung gerade befindet.
- coordinateReference
Typ: System.Windows.Media.Visual
Das Eingabeelement, das den Koordinatenverweis für die Punkte darstellt.Dies sollte ein Element sein, das sich nie bewegt, z. B. die DesignerView-Klasse.
- startPosition
Typ: System.Windows.Point
Die Mausposition, als die Bewegung zuerst initiiert wurde.
- currentPosition
Typ: System.Windows.Point
Die aktuelle Mausposition.
- allowedEffects
Typ: System.Windows.DragDropEffects
Die zulässigen Drag & Drop-Effekte.
- data
Typ: System.Windows.IDataObject
Die Daten für das Ziehen.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | context, sourceModel, targetModel oder data ist nullNULL-Verweis (Nothing in Visual Basic). |
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.
Siehe auch
Referenz
Microsoft.Windows.Design.Interaction-Namespace