Difference between MouseLeftButtonDown and MouseLeftButtonUp in Silverlight.- The difference is the action of the button. Once mouse button is pressed MouseLeftButtonDown event is invoked and MouseLeftButtonUp event is invoked after pressing left mouse button down and release it.
- The MouseLeftButtonUp event is raised when the left mouse button is released while the mouse pointer is over the object. The MouseLeftButtonDown event is raised when the mouse button is pressed.
- If the mouse pointer is moved over another object when the button is released, the object that received the MouseLeftButtonDown event will not receive the MouseLeftButtonUp event.
- There is no discrete double-click event. Two sequences are consisted in a double-click of MouseLeftButtonDown and MouseLeftButtonUp events.
- The MouseLeftButtonUp event is a bubbling event. It means that if a multiple MouseLeftButtonUp events are defined for a tree of elements, the event is received by each object in the object hierarchy, starting with the object that directly receives the event, and then bubbles to each successive parent element.
- The bubbling metaphor indicates that the event starts at the bottom and works its way up the object tree.
- The sender parameter identifies the object for a bubbling event where the event is handled, not necessarily the object that actually received the input condition that initiated the event.
|