Class MenuItem
Represents a selectable item inside a Menu.
Inheritance
System.Object
MenuItem
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class MenuItem : Button
Constructors
| Improve this Doc View SourceMenuItem()
Initializes a new instance of the MenuItem class.
Declaration
public MenuItem()
Fields
| Improve this Doc View SourceHeaderProperty
Identifies the System.Windows.Controls.HeaderedItemsControl.Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
HeaderTemplateProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IconProperty
Identifies the System.Windows.Controls.MenuItem.Icon dependency property.
Declaration
public static readonly DependencyProperty IconProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceHeader
Gets or sets the item that labels the control.
Declaration
public object Header { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
HeaderTemplate
Declaration
[NotImplemented]
public DataTemplate HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate |
Icon
Gets or sets the icon that appears in a MenuItem.
Declaration
public object Icon { get; set; }
Property Value
Type | Description |
---|---|
System.Object |