Northwoods.GoXam Namespace > DiagramPanel Class : PerformGesture Method |
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.