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

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 _
)
public MouseGestureData(
    EditingContext context,
    ModelItem sourceModel,
    ModelItem targetModel,
    Visual coordinateReference,
    Point startPosition,
    Point currentPosition
)
public:
MouseGestureData(
    EditingContext^ context, 
    ModelItem^ sourceModel, 
    ModelItem^ targetModel, 
    Visual^ coordinateReference, 
    Point startPosition, 
    Point currentPosition
)
new : 
        context:EditingContext * 
        sourceModel:ModelItem * 
        targetModel:ModelItem * 
        coordinateReference:Visual * 
        startPosition:Point * 
        currentPosition:Point -> MouseGestureData
public function MouseGestureData(
    context : EditingContext, 
    sourceModel : ModelItem, 
    targetModel : ModelItem, 
    coordinateReference : Visual, 
    startPosition : Point, 
    currentPosition : Point
)

Parâmetros

  • startPosition
    Tipo: System.Windows.Point
    A posição do mouse quando o gesto foi iniciado pela primeira vez.

Exceções

Exceção Condição
ArgumentNullException

context, sourceModel, targetModel, or coordinateReference is 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