Occurs when the left mouse button is released.
| XAML | <object MouseLeftButtonUp="eventhandlerFunction" .../> |
| Scripting |
[token = ]object.AddEventListener("MouseLeftButtonUp", eventhandlerFunction)
|
AddEventListener Parameters
| token | integer A token that is returned from the function, which you can optionally retain as a variable. If you intend to call RemoveEventListener to remove the handler, you will need this token. |
| eventhandlerFunction | object The name of your event handler function as it is defined in script. When used as an AddEventListener parameter, quotes around the function name are not required. See Remarks. |
Event Handler Parameters
| sender | object Identifies the object that invoked the event. |
| mouseEventArgs | object mouseEventArgs.GetPosition(element).X identifies the x-coordinate position of the mouse. mouseEventArgs.GetPosition(element).Y identifies the y-coordinate position of the mouse. mouseEventArgs.Shift determines whether the SHIFT key is down. mouseEventArgs.Ctrl determines whether the CTRL key is down. |
Event Information
The MouseLeftButtonUp event can be defined for any UIElement-derived class, such as Canvas, TextBlock, or Rectangle.
Examples
The following XAML example illustrates bubbling and shows MouseLeftButtonUp events defined for a two Canvas and one TextBlock objects. In this case, if you release the mouse over the TextBlock object, it receives the MouseLeftButtonUp event. The event is then bubbled upward to the parent Canvas, and finally to the top-level Canvas object.
The following JavaScript example shows how to implement a MouseLeftButtonUp event handler function:
Applies To
Canvas,
Ellipse,
Glyphs,
Image,
InkPresenter,
Line,
MediaElement,
Path,
Polygon,
Polyline,
Rectangle,
TextBlock
See Also
Silverlight Events
Silverlight Mouse Support
MouseEnter
MouseLeave
MouseLeftButtonDown
MouseMove
GetPosition