4.128 ContentElement

x:Object > DependencyObject > ContentElement, IInputElement
ContentElement
FrameworkContentElement
(usage)
<ContentElement />
(description)
Provides a core-level base type for content elements. Content elements are designed for flow-style presentation, using an intuitive markup-oriented layout model and a deliberately simple object model.
(properties)
AllowDrop
x:Boolean
(description)
A value that indicates whether this element can be used as the target of a drag-and-drop operation.
CommandBindings
CommandBindingCollection
(description)
A collection of CommandBinding objects that are associated with this element.
[read only]
true
Focusable
x:Boolean
(description)
A value that indicates whether the element can receive focus.
InputBindings
InputBindingCollection
(description)
The collection of input bindings that are associated with this element.
[read only]
true
IsEnabled
x:Boolean
(description)
A value that indicates whether this element is enabled in the user interface (UI).
(events)
DragEnter
Occurs when the input system reports an underlying drag event with this element as the drag target.
DragLeave
Occurs when the input system reports an underlying drag event with this element as the drag 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.
FocusableChanged
Occurs when the value of the Focusable property changes.
GiveFeedback
Occurs when the input system reports an underlying drag-and-drop event that involves this element.
GotFocus
Occurs when this element gets logical focus.
GotKeyboardFocus
Occurs when the keyboard is focused on this element.
GotMouseCapture
Occurs when this element captures the mouse.
GotStylusCapture
Occurs when this element captures the stylus.
GotTouchCapture
Occurs when a touch is captured to this element.
IsEnabledChanged
Occurs when the value of the IsEnabled property on this element changes.
IsKeyboardFocusedChanged
Occurs when the value of the IsKeyboardFocused property changes on this element.
IsKeyboardFocusWithinChanged
Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element.
IsMouseCapturedChanged
Occurs when the value of the IsMouseCaptured property changes on this element.
IsMouseCaptureWithinChanged
Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.
IsMouseDirectlyOverChanged
Occurs when the value of the IsMouseDirectlyOver property changes on this element.
IsStylusCapturedChanged
Occurs when the value of the IsStylusCaptured property changes on this element.
IsStylusCaptureWithinChanged
Occurs when the value of the IsStylusCaptureWithin property changes on this element.
IsStylusDirectlyOverChanged
Occurs when the value of the IsStylusDirectlyOver property changes on this element.
KeyDown
Occurs when a key is pressed while focus is on this element.
KeyUp
Occurs when a key is released while focus is on this element.
LostFocus
Occurs when this element loses logical focus.
LostKeyboardFocus
Occurs when the keyboard is no longer focused on this element.
LostMouseCapture
Occurs when this element loses mouse capture.
LostStylusCapture
Occurs when this element loses stylus capture.
LostTouchCapture
Occurs when this element loses a touch capture.
MouseDown
Occurs when any mouse button is pressed while the pointer is over this element.
MouseEnter
Occurs when the mouse pointer enters the bounds of this element.
MouseLeave
Occurs when the mouse pointer leaves the bounds of this element.
MouseLeftButtonDown
Occurs when the left mouse button is pressed while the mouse pointer is over this element.
MouseLeftButtonUp
Occurs when the left mouse button is released while the mouse pointer is over this element.
MouseMove
Occurs when the mouse pointer moves while over this element.
MouseRightButtonDown
Occurs when the right mouse button is pressed while the mouse pointer is over this element.
MouseRightButtonUp
Occurs when the right mouse button is released while the mouse pointer is over this element.
MouseUp
Occurs when any mouse button is released over this element.
MouseWheel
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
PreviewDragEnter
Occurs when the input system reports an underlying drag event with this element as the drag target.
PreviewDragLeave
Occurs when the input system reports an underlying drag event with this element as the drag origin.
PreviewDragOver
Occurs when the input system reports an underlying drag event with this element as the potential drop target.
PreviewDrop
Occurs when the input system reports an underlying drop event with this element as the drop target.
PreviewGiveFeedback
Occurs when a drag-and-drop operation is started.
PreviewGotKeyboardFocus
Occurs when the keyboard is focused on this element.
PreviewKeyDown
Occurs when a key is pressed while the keyboard is focused on this element.
PreviewKeyUp
Occurs when a key is released while the keyboard is focused on this element.
PreviewLostKeyboardFocus
Occurs when the keyboard is no longer focused on this element.
PreviewMouseDown
Occurs when any mouse button is pressed while the pointer is over this element.
PreviewMouseLeftButtonDown
Occurs when the left mouse button is pressed while the mouse pointer is over this element.
PreviewMouseLeftButtonUp
Occurs when the left mouse button is released while the mouse pointer is over this element.
PreviewMouseMove
Occurs when the mouse pointer moves while the mouse pointer is over this element.
PreviewMouseRightButtonDown
Occurs when the right mouse button is pressed while the mouse pointer is over this element.
PreviewMouseRightButtonUp
Occurs when the right mouse button is released while the mouse pointer is over this element.
PreviewMouseUp
Occurs when any mouse button is released while the mouse pointer is over this element.
PreviewMouseWheel
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
PreviewQueryContinueDrag
Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.
PreviewStylusButtonDown
Occurs when the stylus button is pressed while the pointer is over this element.
PreviewStylusButtonUp
Occurs when the stylus button is released while the pointer is over this element.
PreviewStylusDown
Occurs when the stylus touches the digitizer while it is over this element.
PreviewStylusInAirMove
Occurs when the stylus moves over an element without actually touching the digitizer.
PreviewStylusInRange
Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
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.
PreviewStylusOutOfRange
Occurs when the stylus is too far from the digitizer to be detected.
PreviewStylusSystemGesture
Occurs when a user performs one of several stylus gestures.
PreviewStylusUp
Occurs when the user raises the stylus off the digitizer while the stylus is over this element.
PreviewTextInput
Occurs when this element gets text in a device-independent manner.
PreviewTouchDown
Occurs when a finger touches the screen while the finger is over this element.
PreviewTouchMove
Occurs when a finger moves on the screen while the finger is over this element.
PreviewTouchUp
Occurs when a finger is raised off of the screen while the finger is over this element.
QueryContinueDrag
Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.
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.
StylusButtonDown
Occurs when the stylus button is pressed while the pointer is over this element.
StylusButtonUp
Occurs when the stylus button is released while the pointer is over this element.
StylusDown
Occurs when the stylus touches the digitizer while the stylus is over this element.
StylusEnter
Occurs when the stylus enters the bounds of this element.
StylusInAirMove
Occurs when the stylus moves over an element without actually touching the digitizer.
StylusInRange
Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
StylusLeave
Occurs when the stylus leaves the bounds of the element.
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.
StylusOutOfRange
Occurs when the stylus is too far from the digitizer to be detected, while over this element.
StylusSystemGesture
Occurs when a user performs one of several stylus gestures.
StylusUp
Occurs when the user raises the stylus off the digitizer while it is over this element.
TextInput
Occurs when this element gets text in a device-independent manner.
TouchDown
Occurs when a finger touches the screen while the finger is over this element.
TouchEnter
Occurs when a touch moves from outside to inside the bounds of this element.
TouchLeave
Occurs when a touch moves from inside to outside the bounds of this element.
TouchMove
Occurs when a finger moves on the screen while the finger is over this element.
TouchUp
Occurs when a finger is raised off of the screen while the finger is over this element.