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, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IGeneratorHost, IContainItemStorage, ICommandSource
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 Object

Constructors

BarMenuControlWrapper()

Initializes a new instance of the BarMenuControlWrapper class.

public BarMenuControlWrapper()

Methods

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.

ToString()

Returns the string representation of a System.Windows.Controls.HeaderedItemsControl object.

public override string ToString()

Returns

System.String:

A string that represents this object.

Inherited Members

  • 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