BarSplitMenuItem Class
Represents a split menu item control, for use within a menu.
[TemplatePart(Name = "PART_IndicatorArea", Type = typeof(UIElement))]
public class BarSplitMenuItem : BarMenuItem
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl HeaderedItemsControl MenuItem BarMenuItem object
Constructors
BarSplitMenuItem()
Initializes a new instance of the BarSplitMenuItem class.
public BarSplitMenuItem()
BarSplitMenuItem(string)
Initializes a new instance of the BarSplitMenuItem class with the specified label.
public BarSplitMenuItem(string label)
Parameter | Type | Description |
---|---|---|
label | string | The text label to display. |
Methods
OnAccessKey(AccessKeyEventArgs)
Responds when the AccessKey for this control is invoked.
protected override void OnAccessKey(AccessKeyEventArgs e)
Parameter | Type | Description |
---|---|---|
e | AccessKeyEventArgs | The event data for the System.Windows.Input.AccessKeyManager.AccessKeyPressed event. |
OnApplyTemplate()
Called when the template's tree is generated.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Provides an appropriate MenuItemAutomationPeer implementation for this control, as part of the WPF automation infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
A MenuItemAutomationPeer for this MenuItem.
OnItemsChanged(NotifyCollectionChangedEventArgs)
Called when the Items property changes.
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | NotifyCollectionChangedEventArgs | The event data for the ItemsChanged event. |
OnKeyDown(KeyEventArgs)
Responds to the KeyDown event.
protected override void OnKeyDown(KeyEventArgs e)
Parameter | Type | Description |
---|---|---|
e | KeyEventArgs | The event data for the KeyDown event. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Called when the left mouse button is pressed.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameter | Type | Description |
---|---|---|
e | MouseButtonEventArgs | The event data for the MouseLeftButtonDown event. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called when the left mouse button is released.
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameter | Type | Description |
---|---|---|
e | MouseButtonEventArgs | The event data for the MouseLeftButtonUp event. |
UpdateEnabledProperties()
Updates the CanEffectivelyExecute and CanEffectivelyOpenSubMenu properties.
protected override void UpdateEnabledProperties()
Inherited Members
- BarMenuItem.SubmenuOpeningEvent
- BarMenuItem.CanCloneToRibbonQuickAccessToolBarProperty
- BarMenuItem.CanEffectivelyExecuteProperty
- BarMenuItem.CanEffectivelyOpenSubMenuProperty
- BarMenuItem.CanSelectOnPointerOverProperty
- BarMenuItem.DescriptionProperty
- BarMenuItem.IsInputGestureTextVisibleProperty
- BarMenuItem.KeyProperty
- BarMenuItem.KeyTipTextProperty
- BarMenuItem.LabelProperty
- BarMenuItem.LargeImageSourceProperty
- BarMenuItem.PopupOpeningCommandProperty
- BarMenuItem.ScreenTipFooterProperty
- BarMenuItem.ScreenTipHeaderProperty
- BarMenuItem.SmallImageSourceProperty
- BarMenuItem.TitleProperty
- BarMenuItem.UseLargeSizeProperty
- BarMenuItem.ClearContainerForItemOverride(DependencyObject, object)
- BarMenuItem.GetContainerForItemOverride()
- BarMenuItem.IsItemItsOwnContainerOverride(object)
- BarMenuItem.OnClick()
- BarMenuItem.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
- BarMenuItem.OnInitialized(EventArgs)
- BarMenuItem.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- BarMenuItem.OnKeyTipInvoked(KeyTipInvokedEventArgs)
- BarMenuItem.OnKeyTipOpening(KeyTipOpeningEventArgs)
- BarMenuItem.OnKeyUp(KeyEventArgs)
- BarMenuItem.OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
- BarMenuItem.OnMouseEnter(MouseEventArgs)
- BarMenuItem.OnMouseLeave(MouseEventArgs)
- BarMenuItem.OnMouseRightButtonDown(MouseButtonEventArgs)
- BarMenuItem.OnMouseRightButtonUp(MouseButtonEventArgs)
- BarMenuItem.OnPropertyChanged(DependencyPropertyChangedEventArgs)
- BarMenuItem.OnSubmenuOpening(CancelRoutedEventArgs)
- BarMenuItem.OnToolTipOpening(ToolTipEventArgs)
- BarMenuItem.OnVisualParentChanged(DependencyObject)
- BarMenuItem.PrepareContainerForItemOverride(DependencyObject, object)
- BarMenuItem.ToString()
- BarMenuItem.CanCloneToRibbonQuickAccessToolBar
- BarMenuItem.CanEffectivelyExecute
- BarMenuItem.CanEffectivelyOpenSubMenu
- BarMenuItem.CanSelectOnPointerOver
- BarMenuItem.Description
- BarMenuItem.IsEnabledCore
- BarMenuItem.IsInputGestureTextVisible
- BarMenuItem.Key
- BarMenuItem.KeyTipText
- BarMenuItem.Label
- BarMenuItem.LargeImageSource
- BarMenuItem.PopupOpeningCommand
- BarMenuItem.ScreenTipFooter
- BarMenuItem.ScreenTipHeader
- BarMenuItem.SmallImageSource
- BarMenuItem.Title
- BarMenuItem.UseLargeSize
- BarMenuItem.SubmenuOpening