BarSplitMenuItem Class
Represents a split menu item control, for use within a menu.
[TemplatePart(Name = "PART_IndicatorArea", Type = typeof(UIElement))]
public class BarSplitMenuItem : BarMenuItem, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IGeneratorHost, IContainItemStorage, ICommandSource, ISupportsCoerceKeyTipText, ISupportsCoerceLabel
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ItemsControl System.Windows.Controls.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 | System.String | The text label to display. |
Properties
CanOpenSubMenu
Gets whether the submenu can be opened.
protected override bool CanOpenSubMenu { get; }
Property Value
- System.Boolean:
true
if the submenu can be opened; otherwise,false
.
Methods
OnAccessKey(AccessKeyEventArgs)
Responds when the AccessKey for this control is invoked.
protected override void OnAccessKey(AccessKeyEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.Input.AccessKeyEventArgs | The event data for the AccessKeyPressed event. |
OnApplyTemplate()
Called when the template's tree is generated.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Provides an appropriate System.Windows.Automation.Peers.MenuItemAutomationPeer implementation for this control, as part of the WPF automation infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- System.Windows.Automation.Peers.AutomationPeer:
A System.Windows.Automation.Peers.MenuItemAutomationPeer for this MenuItem.
OnItemsChanged(NotifyCollectionChangedEventArgs)
Called when the Items property changes.
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Collections.Specialized.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 | System.Windows.Input.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 | System.Windows.Input.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 | System.Windows.Input.MouseButtonEventArgs | The event data for the MouseLeftButtonUp event. |
Inherited Members
- BarMenuItem.SubmenuOpeningEvent
- BarMenuItem.CanCloneToRibbonQuickAccessToolBarProperty
- 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.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.OnSubmenuOpening(CancelRoutedEventArgs)
- BarMenuItem.OnToolTipOpening(ToolTipEventArgs)
- BarMenuItem.PrepareContainerForItemOverride(DependencyObject, Object)
- BarMenuItem.ToString()
- BarMenuItem.CanCloneToRibbonQuickAccessToolBar
- BarMenuItem.Description
- BarMenuItem.IsInputGestureTextVisible
- BarMenuItem.Key
- BarMenuItem.KeyTipText
- BarMenuItem.Label
- BarMenuItem.LargeImageSource
- BarMenuItem.PopupOpeningCommand
- BarMenuItem.ScreenTipFooter
- BarMenuItem.ScreenTipHeader
- BarMenuItem.SmallImageSource
- BarMenuItem.Title
- BarMenuItem.UseLargeSize
- BarMenuItem.SubmenuOpening
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()