Construtor MouseGestureData (EditingContext, ModelItem, ModelItem, Visual, Point, Point, DependencyObject, DependencyObject)

Initializes a new instance of the MouseGestureData 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, _
    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
)

Parâmetros

  • 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

MouseGestureData Classe

Sobrecargas MouseGestureData

Namespace Microsoft.Windows.Design.Interaction

Outros recursos

Noções básicas sobre extensibilidade Designer WPF