Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 _
)
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
)
Parameters
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context that owns this gesture data.
- sourceModel
Type: Microsoft.Windows.Design.Model.ModelItem
The model where the gesture began.
- targetModel
Type: Microsoft.Windows.Design.Model.ModelItem
The model the gesture is currently over.
- 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.
- currentPosition
Type: System.Windows.Point
The current position of the mouse.
- allowedEffects
Type: System.Windows.DragDropEffects
The allowed drag-and-drop effects.
- data
Type: System.Windows.IDataObject
The data for the drag.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | context, sourceModel, targetModel, or data is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace