Skip to main content
Bar

BarSubItem Events

Represents a sub-menu.
Name Description
BeforeCommandExecute Fires after the item was clicked before the specified command was executed. Inherited from BarItem.
CloseUp Occurs when the submenu closes.
ContextMenuClosing Occurs just before any context menu on the element is closed. Inherited from FrameworkContentElement.
ContextMenuOpening Occurs when any context menu on the element is opened. Inherited from FrameworkContentElement.
DataContextChanged Occurs when this element’s data context changes. Inherited from FrameworkContentElement.
DragEnter Occurs when the input system reports an underlying drag event with this element as the drag target. Inherited from ContentElement.
DragLeave Occurs when the input system reports an underlying drag event with this element as the drag origin. Inherited from ContentElement.
DragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target. Inherited from ContentElement.
Drop Occurs when the input system reports an underlying drop event with this element as the drop target. Inherited from ContentElement.
FocusableChanged Occurs when the value of the Focusable property changes. Inherited from ContentElement.
GetItemData Allows you to populate the BarSubItem with items dynamically, before the BarSubItem’s dropdown is opened.
GiveFeedback Occurs when the input system reports an underlying drag-and-drop event that involves this element. Inherited from ContentElement.
GotFocus Occurs when this element gets logical focus. Inherited from ContentElement.
GotKeyboardFocus Occurs when the keyboard is focused on this element. Inherited from ContentElement.
GotMouseCapture Occurs when this element captures the mouse. Inherited from ContentElement.
GotStylusCapture Occurs when this element captures the stylus. Inherited from ContentElement.
GotTouchCapture Occurs when a touch is captured to this element. Inherited from ContentElement.
Initialized Occurs when this FrameworkContentElement is initialized. This coincides with cases where the value of the IsInitialized property changes from false (or undefined) to true. Inherited from FrameworkContentElement.
IsEnabledChanged Occurs when the value of the IsEnabled property on this element changes. Inherited from ContentElement.
IsKeyboardFocusedChanged Occurs when the value of the IsKeyboardFocused property changes on this element. Inherited from ContentElement.
IsKeyboardFocusWithinChanged Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element. Inherited from ContentElement.
IsMouseCapturedChanged Occurs when the value of the IsMouseCaptured property changes on this element. Inherited from ContentElement.
IsMouseCaptureWithinChanged Occurs when the value of the IsMouseCaptureWithinProperty changes on this element. Inherited from ContentElement.
IsMouseDirectlyOverChanged Occurs when the value of the IsMouseDirectlyOver property changes on this element. Inherited from ContentElement.
IsStylusCapturedChanged Occurs when the value of the IsStylusCaptured property changes on this element. Inherited from ContentElement.
IsStylusCaptureWithinChanged Occurs when the value of the IsStylusCaptureWithin property changes on this element. Inherited from ContentElement.
IsStylusDirectlyOverChanged Occurs when the value of the IsStylusDirectlyOver property changes on this element. Inherited from ContentElement.
ItemClick Fires when the item’s link is clicked. Inherited from BarItem.
ItemDoubleClick Fires when the item’s link is double-clicked. Inherited from BarItem.
KeyDown Occurs when a key is pressed while focus is on this element. Inherited from ContentElement.
KeyUp Occurs when a key is released while focus is on this element. Inherited from ContentElement.
Loaded Occurs when the element is laid out, rendered, and ready for interaction. Inherited from FrameworkContentElement.
LostFocus Occurs when this element loses logical focus. Inherited from ContentElement.
LostKeyboardFocus Occurs when the keyboard is no longer focused on this element. Inherited from ContentElement.
LostMouseCapture Occurs when this element loses mouse capture. Inherited from ContentElement.
LostStylusCapture Occurs when this element loses stylus capture. Inherited from ContentElement.
LostTouchCapture Occurs when this element loses a touch capture. Inherited from ContentElement.
MouseDown Occurs when any mouse button is pressed while the pointer is over this element. Inherited from ContentElement.
MouseEnter Occurs when the mouse pointer enters the bounds of this element. Inherited from ContentElement.
MouseLeave Occurs when the mouse pointer leaves the bounds of this element. Inherited from ContentElement.
MouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element. Inherited from ContentElement.
MouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element. Inherited from ContentElement.
MouseMove Occurs when the mouse pointer moves while over this element. Inherited from ContentElement.
MouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element. Inherited from ContentElement.
MouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element. Inherited from ContentElement.
MouseUp Occurs when any mouse button is released over this element. Inherited from ContentElement.
MouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element. Inherited from ContentElement.
Popup Occurs when the submenu pops up.
PreviewDragEnter Occurs when the input system reports an underlying drag event with this element as the drag target. Inherited from ContentElement.
PreviewDragLeave Occurs when the input system reports an underlying drag event with this element as the drag origin. Inherited from ContentElement.
PreviewDragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target. Inherited from ContentElement.
PreviewDrop Occurs when the input system reports an underlying drop event with this element as the drop target. Inherited from ContentElement.
PreviewGiveFeedback Occurs when a drag-and-drop operation is started. Inherited from ContentElement.
PreviewGotKeyboardFocus Occurs when the keyboard is focused on this element. Inherited from ContentElement.
PreviewKeyDown Occurs when a key is pressed while the keyboard is focused on this element. Inherited from ContentElement.
PreviewKeyUp Occurs when a key is released while the keyboard is focused on this element. Inherited from ContentElement.
PreviewLostKeyboardFocus Occurs when the keyboard is no longer focused on this element. Inherited from ContentElement.
PreviewMouseDown Occurs when any mouse button is pressed while the pointer is over this element. Inherited from ContentElement.
PreviewMouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element. Inherited from ContentElement.
PreviewMouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element. Inherited from ContentElement.
PreviewMouseMove Occurs when the mouse pointer moves while the mouse pointer is over this element. Inherited from ContentElement.
PreviewMouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element. Inherited from ContentElement.
PreviewMouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element. Inherited from ContentElement.
PreviewMouseUp Occurs when any mouse button is released while the mouse pointer is over this element. Inherited from ContentElement.
PreviewMouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element. Inherited from ContentElement.
PreviewQueryContinueDrag Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. Inherited from ContentElement.
PreviewStylusButtonDown Occurs when the stylus button is pressed while the pointer is over this element. Inherited from ContentElement.
PreviewStylusButtonUp Occurs when the stylus button is released while the pointer is over this element. Inherited from ContentElement.
PreviewStylusDown Occurs when the stylus touches the digitizer while it is over this element. Inherited from ContentElement.
PreviewStylusInAirMove Occurs when the stylus moves over an element without actually touching the digitizer. Inherited from ContentElement.
PreviewStylusInRange Occurs when the stylus is close enough to the digitizer to be detected, while over this element. Inherited from ContentElement.
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. Inherited from ContentElement.
PreviewStylusOutOfRange Occurs when the stylus is too far from the digitizer to be detected. Inherited from ContentElement.
PreviewStylusSystemGesture Occurs when a user performs one of several stylus gestures. Inherited from ContentElement.
PreviewStylusUp Occurs when the user raises the stylus off the digitizer while the stylus is over this element. Inherited from ContentElement.
PreviewTextInput Occurs when this element gets text in a device-independent manner. Inherited from ContentElement.
PreviewTouchDown Occurs when a finger touches the screen while the finger is over this element. Inherited from ContentElement.
PreviewTouchMove Occurs when a finger moves on the screen while the finger is over this element. Inherited from ContentElement.
PreviewTouchUp Occurs when a finger is raised off of the screen while the finger is over this element. Inherited from ContentElement.
PropertyChanged Occurs every time any of the BarItem properties has changed its value. Inherited from BarItem.
QueryContinueDrag Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. Inherited from ContentElement.
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. Inherited from ContentElement.
SourceUpdated Occurs when any associated data source participating in a binding on this element changes. Inherited from FrameworkContentElement.
StylusButtonDown Occurs when the stylus button is pressed while the pointer is over this element. Inherited from ContentElement.
StylusButtonUp Occurs when the stylus button is released while the pointer is over this element. Inherited from ContentElement.
StylusDown Occurs when the stylus touches the digitizer while the stylus is over this element. Inherited from ContentElement.
StylusEnter Occurs when the stylus enters the bounds of this element. Inherited from ContentElement.
StylusInAirMove Occurs when the stylus moves over an element without actually touching the digitizer. Inherited from ContentElement.
StylusInRange Occurs when the stylus is close enough to the digitizer to be detected, while over this element. Inherited from ContentElement.
StylusLeave Occurs when the stylus leaves the bounds of the element. Inherited from ContentElement.
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. Inherited from ContentElement.
StylusOutOfRange Occurs when the stylus is too far from the digitizer to be detected, while over this element. Inherited from ContentElement.
StylusSystemGesture Occurs when a user performs one of several stylus gestures. Inherited from ContentElement.
StylusUp Occurs when the user raises the stylus off the digitizer while it is over this element. Inherited from ContentElement.
TargetUpdated Occurs when any associated target property participating in a binding on this element changes. Inherited from FrameworkContentElement.
TextInput Occurs when this element gets text in a device-independent manner. Inherited from ContentElement.
ToolTipClosing Occurs just before any tooltip on the element is closed. Inherited from FrameworkContentElement.
ToolTipOpening Occurs when any tooltip on the element is opened. Inherited from FrameworkContentElement.
TouchDown Occurs when a finger touches the screen while the finger is over this element. Inherited from ContentElement.
TouchEnter Occurs when a touch moves from outside to inside the bounds of this element. Inherited from ContentElement.
TouchLeave Occurs when a touch moves from inside to outside the bounds of this element. Inherited from ContentElement.
TouchMove Occurs when a finger moves on the screen while the finger is over this element. Inherited from ContentElement.
TouchUp Occurs when a finger is raised off of the screen while the finger is over this element. Inherited from ContentElement.
Unloaded Occurs when the element is removed from an element tree of loaded elements. Inherited from FrameworkContentElement.
See Also