[]
Represents a selectable item inside a C1Menu control.
public class C1MenuItem : C1HierarchicalPresenter, IDisposable, INotifyPropertyChanged
Name | Description |
---|---|
C1MenuItem() | Initializes a new instance of the C1MenuItem class. |
Name | Description |
---|---|
CommandParameterProperty | Identifies the CommandParameter dependency property. |
CommandProperty | Identifies the Command dependency property. |
GroupNameProperty | Identifies the GroupName dependency property. |
HighlightedBackgroundProperty | Identifies the HighlightedBackground dependency property. |
HotKeyProperty | Identifies the HotKey dependency property. |
IconProperty | Identifies the Icon dependency property. |
IconTemplateProperty | Identifies the IconTemplate dependency property. |
IndentBackgroundProperty | Identifies the IndentBackground dependency property. |
IsCheckableProperty | Identifies the IsCheckable dependency property. |
IsCheckedProperty | Identifies the IsChecked dependency property. |
IsEnabledProperty | Identifies the IsEnabled dependency property. |
IsHighlightSupportedProperty | Identifies the IsHighlightSupported dependency property. |
IsHighlightedProperty | Identifies the IsHighlighted dependency property. |
IsIndentedProperty | Identifies the IsIndented dependency property. |
IsSubmenuOpenProperty | Identifies the IsSubmenuOpen dependency property. |
IsSubmenuOpenVisualProperty | Identifies the IsSubmenuOpenVisual dependency property. |
MenuStyleProperty | Identifies the MenuStyle dependency property. |
OpenIconStyleProperty | Identifies the OpenIconStyle dependency property. |
OpenIconTemplateProperty | Identifies the OpenIconTemplate dependency property. |
OpenedBackgroundProperty | Identifies the OpenedBackground dependency property. |
PopupStyleProperty | Identifies the PopupStyle dependency property. |
SeparatorStyleProperty | Identifies the SeparatorStyle dependency property. |
ShowOpenIconProperty | Identifies the ShowOpenIcon dependency property. |
SubMenuMaxHeightProperty | Identifies the SubMenuMaxHeight dependency property. |
TextAlignmentProperty | Identifies the TextAlignment dependency property. |
TextWrappingProperty | Identifies the TextWrapping dependency property. |
Name | Description |
---|---|
Command | Gets or sets the command to invoke when this button is pressed. |
CommandParameter | Gets or sets the parameter to pass to the Command property. |
GroupName | Gets or sets the name that specifies which MenuItems are mutually exclusive (when checkable). |
HasContent | Gets whether the menu item has any content. |
HighlightedBackground | Gets or sets the Microsoft.UI.Xaml.Media.Brush used to highlight the menu item. |
HotKey | Gets or sets the text of the hotkey that will call the command tied to the specified item. |
HotKeyVisibility | Gets the visibility of the InputGestureText. |
Icon | Gets or sets the icon that appears in a C1MenuItem. |
IconTemplate | Gets or sets the template of the icon. |
IndentBackground | Gets or sets the brush used to paint the Indent band at the left. |
Index | Gets the index of this C1MenuItem in its parent items collection. |
IsCheckable | Gets or sets a value that indicates whether a C1MenuItem can be checked. |
IsChecked | Gets or sets a value that indicates whether the C1MenuItem is checked. |
IsEnabled | |
IsHighlightSupported | Gets or sets the bool value determining whether menu item should support highlighted state. The default value is True. |
IsHighlighted | Gets or sets a value that indicates whether a C1MenuItem is highlighted. |
IsIndented | Gets or sets whether the Indent band is displayed. |
IsSubmenuOpen | Gets or sets a value that indicates whether the submenu of the C1MenuItem is open. |
IsSubmenuOpenVisual | Gets or sets a value that indicates whether the submenu of the C1MenuItem is open. This is used for visual purposes only. |
Level | Gets the nesting level. |
Menu | Gets the top level menu. |
MenuList | Gets the parent menu list. |
MenuStyle | Gets or sets the style aplied to the sub-menus. |
OpenIconStyle | Gets or sets the style of the open icon. |
OpenIconTemplate | Gets or sets the template of the icon used to show this item has a sub-menu. |
OpenIconVisibility | Gets the visibility of the open icon. |
OpenedBackground | Gets or sets the Microsoft.UI.Xaml.Media.Brush used in a menu item when this item is opened. |
ParentItem | Gets the parent menu item. |
PopupStyle | Gets or sets the style of the popup. |
SeparatorStyle | Gets or sets the style of the separator items. |
ShowOpenIcon | Gets or sets whether the open icon is displayed, provided the sub menu has items. |
SubMenuMaxHeight | Gets or sets a value that indicates the MaxHeight of the SubMenu. |
TextAlignment | Gets or sets a value that indicates the horizontal alignment of text content in the Header. |
TextWrapping | Gets or sets a value that indicates how any text should be wrapped in the Header. |
Name | Description |
---|---|
ChangeVisualStateHighlighted(bool) | Updates the current visual state of the Highlighted visual state group to match the object's properties. |
ChangeVisualStateIndented(bool) | Updates the current visual state of the Indented visual state group to match the object's properties. |
ChangeVisualStateOpened(bool) | Updates the current visual state of the Opened visual state group to match the object's properties. |
Dispose(bool) | |
OnApplyTemplate() | |
OnChecked(SourcedEventArgs) | Responds to a check item action by raising a Checked event. |
OnClick(SourcedEventArgs) | Responds to a click action by raising a Click event. |
OnItemsChanged(object) | |
OnMouseEnter(object, C1InputEventArgs) | Called when the mouse pointer enters the bounds of the header element. |
OnMouseLeave(object, C1InputEventArgs) | Called when the mouse pointer leaves the bounds of the header element. |
OnPropertyChanged(string) | Called when a property changed. |
OnSubmenuClosed(SourcedEventArgs) | Responds to a closed item action by raising a SubmenuClosed event. |
OnSubmenuClosing(CancelSourceEventArgs) | Responds to a close item action by raising a SubmenuClosing event. |
OnSubmenuOpened(SourcedEventArgs) | Responds to an open item action by raising a SubmenuOpened event. |
OnSubmenuOpening(CancelSourceEventArgs) | Responds to an open item action by raising a SubmenuOpening event. |
OnUnchecked(SourcedEventArgs) | Responds to an uncheck item action by raising a Unchecked event. |
Name | Description |
---|---|
Checked | Occurs when a C1MenuItem is checked. |
Click | Occurs when the C1MenuItem is clicked. |
PropertyChanged | Occurs when a property changed. |
SubmenuClosed | Occurs when the state of the IsSubmenuOpen property changes to false. |
SubmenuClosing | Occurs when a submenu is closing. |
SubmenuOpened | Occurs when the state of the IsSubmenuOpen property changes to true. |
SubmenuOpening | Occurs when a submenu is opening. |
Unchecked | Occurs when a C1MenuItem is unchecked. |