In This Article

BarMenuControlWrapper Class

Represents a menu item control that wraps another interactive control, for use within a menu. It can display the wrapped control's label and aligns everything with other menu items.

public class BarMenuControlWrapper : MenuItem
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl HeaderedItemsControl MenuItem object

Constructors

BarMenuControlWrapper()

Initializes a new instance of the BarMenuControlWrapper class.

public BarMenuControlWrapper()

Methods

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.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.