Share via


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

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

Parameters

  • 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.
  • startPosition
    Type: System.Windows.Point
    The position of the mouse when the gesture was first initiated.

Exceptions

Exception Condition
ArgumentNullException

context, sourceModel, targetModel, or coordinateReference is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

MouseGestureData Class

MouseGestureData Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility