MouseGestureData – konstruktor (EditingContext, ModelItem, ModelItem, Visual, Point, Point, DependencyObject, DependencyObject)
Inicializuje novou instanci MouseGestureData 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, _
sourceAdorner As DependencyObject, _
targetAdorner As DependencyObject _
)
public MouseGestureData(
EditingContext context,
ModelItem sourceModel,
ModelItem targetModel,
Visual coordinateReference,
Point startPosition,
Point currentPosition,
DependencyObject sourceAdorner,
DependencyObject targetAdorner
)
public:
MouseGestureData(
EditingContext^ context,
ModelItem^ sourceModel,
ModelItem^ targetModel,
Visual^ coordinateReference,
Point startPosition,
Point currentPosition,
DependencyObject^ sourceAdorner,
DependencyObject^ targetAdorner
)
new :
context:EditingContext *
sourceModel:ModelItem *
targetModel:ModelItem *
coordinateReference:Visual *
startPosition:Point *
currentPosition:Point *
sourceAdorner:DependencyObject *
targetAdorner:DependencyObject -> MouseGestureData
public function MouseGestureData(
context : EditingContext,
sourceModel : ModelItem,
targetModel : ModelItem,
coordinateReference : Visual,
startPosition : Point,
currentPosition : Point,
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
Model, kdy začala gesta.
- targetModel
Typ: Microsoft.Windows.Design.Model.ModelItem
Model gesta právě přes.
- 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.
- 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.
- 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ů