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 a new instance of the BarMenuHeading class.
public BarMenuHeading()
BarMenuHeading(string)
Initializes a new instance of the BarMenuHeading class with the specified label.
public BarMenuHeading(string label)
Parameter | Type | Description |
---|---|---|
label | string | The text label to display. |
Properties
Label
Gets or sets the text label to display.
[Localizability(LocalizationCategory.Title)]
public string Label { get; set; }
Property Value
- string:
The text label to display.
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.
Fields
LabelProperty
Identifies the Label dependency property. This field is read-only.
public static readonly DependencyProperty LabelProperty