In This Article

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()

protected override void UpdateEnabledProperties()

Inherited Members