UIElement Events
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
The UIElement type exposes the following members.
Events
| Name | Description | |
|---|---|---|
![]() ![]() |
DoubleTap | Occurs when a DoubleTap gesture is committed while over this UIElement. |
![]() |
DragEnter | Occurs when the input system reports an underlying drag event with this element as the target. |
![]() |
DragLeave | Occurs when the input system reports an underlying drag event with this element as the origin. |
![]() |
DragOver | Occurs when the input system reports an underlying drag event with this element as the potential drop target. |
![]() |
Drop | Occurs when the input system reports an underlying drop event with this element as the drop target. |
![]() ![]() |
GotFocus | Occurs when a UIElement receives focus. |
![]() ![]() |
Hold | Occurs when a Hold gesture is committed while over this UIElement. |
![]() ![]() |
KeyDown | Occurs when a keyboard key is pressed while the UIElement has focus. |
![]() ![]() |
KeyUp | Occurs when a keyboard key is released while the UIElement has focus. |
![]() ![]() |
LostFocus | Occurs when a UIElement loses focus. |
![]() ![]() |
LostMouseCapture | Occurs when the UIElement loses mouse capture. |
![]() ![]() |
ManipulationCompleted | Occurs when a manipulation and inertia on the UIElement is complete. |
![]() ![]() |
ManipulationDelta | Occurs when the input device changes position during a manipulation. |
![]() ![]() |
ManipulationStarted | Occurs when an input device begins a manipulation on the UIElement. |
![]() |
MediaCommand | Occurs when a button is pressed on a remote control. |
![]() ![]() |
MouseEnter | Occurs when the mouse (or a stylus) enters the bounding area of a UIElement. |
![]() ![]() |
MouseLeave | Occurs when the mouse (or the stylus) leaves the bounding area of a UIElement. |
![]() ![]() |
MouseLeftButtonDown | Occurs when the left mouse button is pressed (or when the tip of the stylus touches the tablet) while the mouse pointer is over a UIElement. |
![]() ![]() |
MouseLeftButtonUp | Occurs when the left mouse button is released (or the tip of the stylus is removed from the tablet) while the mouse (or the stylus) is over a UIElement (or while a UIElement holds mouse capture). |
![]() ![]() |
MouseMove | Occurs when the coordinate position of the mouse (or stylus) changes while over a UIElement (or while a UIElement holds mouse capture). |
![]() |
MouseRightButtonDown | Occurs when the right mouse button is pressed while the mouse pointer is over a UIElement. |
![]() |
MouseRightButtonUp | Occurs when the right mouse button is released while the mouse pointer is over a UIElement. However, this event will only be raised if a caller marks the preceding MouseRightButtonDown event as handled; see Remarks. |
![]() ![]() |
MouseWheel | Occurs when the user rotates the mouse wheel while the mouse pointer is over a UIElement, or the UIElement has focus. |
![]() ![]() |
Tap | Occurs when a Tap gesture is committed while over this UIElement. |
![]() ![]() |
TextInput | Occurs when a UI element gets text in a device-independent manner. |
![]() ![]() |
TextInputStart | Occurs when a UI element initially gets text in a device-independent manner. |
![]() ![]() |
TextInputUpdate | Occurs when text continues to be composed via an input method editor (IME). |
Top
.gif)
.gif)