IMenuFactory Interface
Provides the base requirements for a factory object that can create menu controls.
public interface IMenuFactory
Remarks
The current menu factory can be access from Current.
Properties
AllowIcons
Indicates if menu items are allowed to show icons, when available.
bool AllowIcons { get; set; }
Property Value
- bool:
trueto allow icons, when available; otherwise,falseto hide icons. The default value istrue.
See Also
AllowInputGestures
Indicates if menu items are allowed to show input gestures (e.g., keyboard shortcuts), when available.
bool AllowInputGestures { get; set; }
Property Value
- bool:
trueto allow input gestures, when available; otherwise,falseto hide input gestures. The default value istrue.
See Also
Methods
CreateMenu()
Creates a menu using default options.
CreateMenu(MenuFactoryMenuOptions?)
Creates a menu.
IMenu CreateMenu(MenuFactoryMenuOptions? options)
| Parameter | Type | Description |
|---|---|---|
| options | MenuFactoryMenuOptions | The options for the new menu. When |
Returns
CreateMenuItem()
Creates a menu item using default options.
CreateMenuItem(MenuFactoryMenuItemOptions?)
Creates a menu item.
IMenuItem CreateMenuItem(MenuFactoryMenuItemOptions? options)
| Parameter | Type | Description |
|---|---|---|
| options | MenuFactoryMenuItemOptions | The options for the new menu item. When |
Returns
CreateMenuSeparator()
Creates a separator.