The MainMenuItem SmartItem is one of the preferred SmartItems for the SmartMenuBar SmartControl and is designed to be used as a default main (first level) menu item.
Although the MainMenuItem SmartItem is one of the SmartMenuBar's preferred SmartItems, it can also be used with any other SmartControl.
Preferred sibling SmartItems
The following table provides a list of the preferred sibling SmartItems:
Preferred sibling SmartItem | Description |
---|---|
CheckMenuItem SmartItem | Represents a SmartItem designed to be used as a checkable menu item for the SmartMenuBar SmartControl. |
MenuItem SmartItem | Represents a SmartItem designed to be used as a basic menu item for the SmartMenuBar SmartControl. |
PopupMenuItem SmartItem | Represents a SmartItem designed to be used as a popup menu item for the SmartMenuBar SmartControl. |
SeparatorMenuItem SmartItem | Represents a SmartItem designed to be used as a separator for the SmartMenuBar SmartControl. |
Things you should consider
-
Do you want to prevent a SmartItem from being selected? Set its CanBeSelected property to false.
-
Do you want to display an image? Set the item's Image or ImageIndex property.