BarMenuHeading Class
Represents a heading control, for use within a menu.
public class BarMenuHeading : 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
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 | System.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
- System.String:
The text label to display.
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.
Fields
LabelProperty
Identifies the Label dependency property. This field is read-only.
public static readonly DependencyProperty LabelProperty
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
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()