GoXam for WPF v3
PerformGesture Method
Northwoods.GoXam Namespace > DiagramPanel Class : PerformGesture Method
a GestureModifiers value, some combination of GestureModifiers.Control, GestureModifiers.Shift, and GestureModifiers.Alt
a Gesture value, typically Gesture.MouseLeftButton; a value of Gesture.None does nothing
the Point in model coordinates for the mouse down event; this value must be within the ViewportBounds
the Point in model coordinates for the mouse up event; this value must be within the ViewportBounds
The Diagram where the mouse up occurs. If this is different from this panel's Diagram, a simulated drag-and-drop will occur. (This does not use real Windows drag-and-drop in WPF.) This may be null to use this panel's diagram, thus keeping the whole gesture within this one diagram.
Simulate some mouse events.
Syntax
public void PerformGesture( 
   GestureModifiers modifiers,
   Gesture action,
   Point down,
   Point up,
   Diagram other
)

Parameters

modifiers
a GestureModifiers value, some combination of GestureModifiers.Control, GestureModifiers.Shift, and GestureModifiers.Alt
action
a Gesture value, typically Gesture.MouseLeftButton; a value of Gesture.None does nothing
down
the Point in model coordinates for the mouse down event; this value must be within the ViewportBounds
up
the Point in model coordinates for the mouse up event; this value must be within the ViewportBounds
other
The Diagram where the mouse up occurs. If this is different from this panel's Diagram, a simulated drag-and-drop will occur. (This does not use real Windows drag-and-drop in WPF.) This may be null to use this panel's diagram, thus keeping the whole gesture within this one diagram.
Remarks

This method can have the same effect as several calls to "OnMouse..." methods, without requiring the use of any MouseEventArgs, MouseButtonEventArgs, or MouseWheelEventArgs. For the mouse double click gestures, such as Gesture.MouseLeftDoubleClick, this is equivalent to a mouse down, mouse up, mouse down, and a mouse up. For the mouse button gestures, such as Gesture.MouseLeftButton, this is equivalent to a mouse down, two mouse moves if down is different than up, and a mouse up. For the mouse wheel gestures, such as Gesture.MouseWheelForward, this is equivalent to a mouse wheel turn.

In all cases the Points are in model coordinates, not in FrameworkElement coordinates. The down and up points must be within the current ViewportBounds.

If you pass a different diagram as the other argument instead of null, this simulates a drag-and-drop from this diagram to that other diagram. Even in WPF, the drag-and-drop will be simulated, rather than using real Windows drag-and-drop, as it would if it did not have permission. The various methods that take DragEventArgs are not called. Supplying a different diagram is not supported for wheel and double-click gestures.

See Also

Reference

DiagramPanel Class
DiagramPanel Members