In This Article

BarMenuHeading Class

Represents a heading control, for use within a menu.

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

Constructors

BarMenuHeading()

Initializes an instance of the class.

public BarMenuHeading()

BarMenuHeading(string?)

Initializes an instance of the class with the specified label.

public BarMenuHeading(string? label)
Parameter Type Description
label string

The text label to display.

Properties

Label

The text label to display.

[Localizability(LocalizationCategory.Title)]
public string? Label { get; set; }

Property Value

string

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.

Fields

LabelProperty

Defines the Label property.

public static readonly DependencyProperty LabelProperty

Extension Methods