Mouse/Pointer Events
8 Nov 20194 minutes to read
The Mouse events occurs due to user interacting with Pointing device.
Following table describes the mouse related Events in Diagram and Diagramming elements.
Event | Event Arguments | Description |
---|---|---|
MouseDown | MouseDownEventArgs | Occurs When the mouse button is pressed over the Diagram page or Diagramming Elements like Node, Connector, Port, Annotation. |
MouseUp | MouseUpEventArgs | Occurs When the mouse button is released over the Diagram page or Diagramming Elements like Node, Connector, Port, Annotation. |
ItemTapped | DiagramEventArgs | Occurs when the mouse button is tapped over the Diagram page or Diagramming Elements like Node, Connector, Port, Annotation. |
ItemDoubleTapped | DiagramEventArgs | Occurs when the mouse button is double tapped over the Diagram page or Diagramming Elements like Node, Connector, Port, Annotation. |
Following table describes the details of the event arguments
MouseDownEventArgs
Property | Type | Description |
---|---|---|
Item | Object | Item returns Diagram or Diagramming elements (Node, Connector, Port, Annotation) which item is pressed by mouse point. |
OriginalSource | Object | OriginalSource returns the Parent of the Item, which item is pressed by mouse point. Diagram, Node, Connector, Port does not has OriginalSource. Annotation has the OriginalSource (i.e Node/Connector) |
MouseEventArgs | PointerPressedArgs | PointerPressedArgs has following properties. (This is Framework related arguments) ButtonState ChangedButton ClickCount |
MouseUpEventArgs
Property | Type | Description |
---|---|---|
Item | Object | Item returns Diagram or Diagramming elements (Node, Connector, Port, Annotation) which item is released by mouse point. |
OriginalSource | Object | OriginalSource returns the Parent of the Item, which item is released by mouse point. Diagram, Node, Connector, Port does not has OriginalSource. Annotation has the OriginalSource (i.e Node/Connector) |
MouseEventArgs | PointerPressedArgs | PointerPressedArgs has following properties. (This is Framework related arguments) ButtonState ChangedButton ClickCount |
ItemTappedEventArgs
Property | Type | Description |
---|---|---|
Item | Object | Item returns Diagram or Diagramming elements (Node, Connector, Port, Annotation) which item is tapped by mouse point. |
OriginalSource | Object | OriginalSource returns the Parent of the Item, which item is tapped by mouse point. Diagram, Node, Connector, Port does not has OriginalSource. Annotation has the OriginalSource (i.e Node/Connector) |
ItemDoubleTappedEventArgs
Property | Type | Description |
---|---|---|
Item | Object | Item returns Diagram or Diagramming elements (Node, Connector, Port, Annotation) which item is double tapped by mouse point. |
OriginalSource | Object | OriginalSource returns the Parent of the Item, which item is double tapped by mouse point. Diagram, Node, Connector, Port does not has OriginalSource. Annotation has the OriginalSource (i.e Node/Connector) |