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
- context
Typ: Microsoft.Windows.Design.EditingContext
Úpravy kontextu vlastnícího data gesto.
- sourceModel
Typ: Microsoft.Windows.Design.Model.ModelItem
Toto je model, kde začala gesta.
- targetModel
Typ: Microsoft.Windows.Design.Model.ModelItem
Toto je model, který právě prostřednictvím speciálního tahu.
- 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
- startPosition
Typ: System.Windows.Point
Pozice myši při prvním zahájení speciálního tahu.
- currentPosition
Typ: System.Windows.Point
Aktuální pozice myši.
- allowedEffects
Typ: System.Windows.DragDropEffects
Povolené účinky a přetažení.
- data
Typ: System.Windows.IDataObject
Data pro tažení.
- 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
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.
Viz také
Odkaz
Microsoft.Windows.Design.Interaction – obor názvů