Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ContentElement Events

The ContentElement type exposes the following members.

  NameDescription
Public event DragEnter Occurs when the input system reports an underlying drag event with this element as the drag target.
Public event DragLeave Occurs when the input system reports an underlying drag event with this element as the drag origin.
Public event DragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target.
Public event Drop Occurs when the input system reports an underlying drop event with this element as the drop target.
Public event FocusableChanged Occurs when the value of the Focusable property changes.
Public event GiveFeedback Occurs when the input system reports an underlying drag-and-drop event that involves this element.
Public event GotFocus Occurs when this element gets logical focus.
Public event GotKeyboardFocus Occurs when the keyboard is focused on this element.
Public event GotMouseCapture Occurs when this element captures the mouse.
Public event GotStylusCapture Occurs when this element captures the stylus.
Public event GotTouchCapture Occurs when a touch is captured to this element.
Public event IsEnabledChanged Occurs when the value of the IsEnabled property on this element changes.
Public event IsKeyboardFocusedChanged Occurs when the value of the IsKeyboardFocused property changes on this element.
Public event IsKeyboardFocusWithinChanged Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element.
Public event IsMouseCapturedChanged Occurs when the value of the IsMouseCaptured property changes on this element.
Public event IsMouseCaptureWithinChanged Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.
Public event IsMouseDirectlyOverChanged Occurs when the value of the IsMouseDirectlyOver property changes on this element.
Public event IsStylusCapturedChanged Occurs when the value of the IsStylusCaptured property changes on this element.
Public event IsStylusCaptureWithinChanged Occurs when the value of the IsStylusCaptureWithin property changes on this element.
Public event IsStylusDirectlyOverChanged Occurs when the value of the IsStylusDirectlyOver property changes on this element.
Public event KeyDown Occurs when a key is pressed while focus is on this element.
Public event KeyUp Occurs when a key is released while focus is on this element.
Public event LostFocus Occurs when this element loses logical focus.
Public event LostKeyboardFocus Occurs when the keyboard is no longer focused on this element.
Public event LostMouseCapture Occurs when this element loses mouse capture.
Public event LostStylusCapture Occurs when this element loses stylus capture.
Public event LostTouchCapture Occurs when this element loses a touch capture.
Public event MouseDown Occurs when any mouse button is pressed while the pointer is over this element.
Public event MouseEnter Occurs when the mouse pointer enters the bounds of this element.
Public event MouseLeave Occurs when the mouse pointer leaves the bounds of this element.
Public event MouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element.
Public event MouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element.
Public event MouseMove Occurs when the mouse pointer moves while over this element.
Public event MouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element.
Public event MouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element.
Public event MouseUp Occurs when any mouse button is released over this element.
Public event MouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
Public event PreviewDragEnter Occurs when the input system reports an underlying drag event with this element as the drag target.
Public event PreviewDragLeave Occurs when the input system reports an underlying drag event with this element as the drag origin.
Public event PreviewDragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target.
Public event PreviewDrop Occurs when the input system reports an underlying drop event with this element as the drop target.
Public event PreviewGiveFeedback Occurs when a drag-and-drop operation is started.
Public event PreviewGotKeyboardFocus Occurs when the keyboard is focused on this element.
Public event PreviewKeyDown Occurs when a key is pressed while the keyboard is focused on this element.
Public event PreviewKeyUp Occurs when a key is released while the keyboard is focused on this element.
Public event PreviewLostKeyboardFocus Occurs when the keyboard is no longer focused on this element.
Public event PreviewMouseDown Occurs when any mouse button is pressed while the pointer is over this element.
Public event PreviewMouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element.
Public event PreviewMouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element.
Public event PreviewMouseMove Occurs when the mouse pointer moves while the mouse pointer is over this element.
Public event PreviewMouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element.
Public event PreviewMouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element.
Public event PreviewMouseUp Occurs when any mouse button is released while the mouse pointer is over this element.
Public event PreviewMouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
Public event PreviewQueryContinueDrag Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.
Public event PreviewStylusButtonDown Occurs when the stylus button is pressed while the pointer is over this element.
Public event PreviewStylusButtonUp Occurs when the stylus button is released while the pointer is over this element.
Public event PreviewStylusDown Occurs when the stylus touches the digitizer while it is over this element.
Public event PreviewStylusInAirMove Occurs when the stylus moves over an element without actually touching the digitizer.
Public event PreviewStylusInRange Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
Public event PreviewStylusMove Occurs when the stylus moves while over the element. The stylus must move while being detected by the  digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.
Public event PreviewStylusOutOfRange Occurs when the stylus is too far from the digitizer to be detected.
Public event PreviewStylusSystemGesture Occurs when a user performs one of several stylus gestures.
Public event PreviewStylusUp Occurs when the user raises the stylus off the digitizer while the stylus is over this element.
Public event PreviewTextInput Occurs when this element gets text in a device-independent manner.
Public event PreviewTouchDown Occurs when a finger touches the screen while the finger is over this element.
Public event PreviewTouchMove Occurs when a finger moves on the screen while the finger is over this element.
Public event PreviewTouchUp Occurs when a finger is raised off of the screen while the finger is over this element.
Public event QueryContinueDrag Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.
Public event QueryCursor Occurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position.
Public event StylusButtonDown Occurs when the stylus button is pressed while the pointer is over this element.
Public event StylusButtonUp Occurs when the stylus button is released while the pointer is over this element.
Public event StylusDown Occurs when the stylus touches the digitizer while the stylus is over this element.
Public event StylusEnter Occurs when the stylus enters the bounds of this element.
Public event StylusInAirMove Occurs when the stylus moves over an element without actually touching the digitizer.
Public event StylusInRange Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
Public event StylusLeave Occurs when the stylus leaves the bounds of the element.
Public event StylusMove Occurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead.
Public event StylusOutOfRange Occurs when the stylus is too far from the digitizer to be detected, while over this element.
Public event StylusSystemGesture Occurs when a user performs one of several stylus gestures.
Public event StylusUp Occurs when the user raises the stylus off the digitizer while it is over this element.
Public event TextInput Occurs when this element gets text in a device-independent manner.
Public event TouchDown Occurs when a finger touches the screen while the finger is over this element.
Public event TouchEnter Occurs when a touch moves from outside to inside the bounds of this element.
Public event TouchLeave Occurs when a touch moves from inside to outside the bounds of this element.
Public event TouchMove Occurs when a finger moves on the screen while the finger is over this element.
Public event TouchUp Occurs when a finger is raised off of the screen while the finger is over this element.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.