In This Article

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:

true to allow icons, when available; otherwise, false to hide icons. The default value is true.

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:

true to allow input gestures, when available; otherwise, false to hide input gestures. The default value is true.

See Also

Methods

CreateMenu()

Creates a menu using default options.

IMenu CreateMenu()

Returns

IMenu

CreateMenu(MenuFactoryMenuOptions?)

Creates a menu.

IMenu CreateMenu(MenuFactoryMenuOptions? options)
Parameter Type Description
options MenuFactoryMenuOptions

The options for the new menu. When null, default options will be used.

Returns

IMenu

CreateMenuItem()

Creates a menu item using default options.

IMenuItem CreateMenuItem()

Returns

IMenuItem

CreateMenuItem(MenuFactoryMenuItemOptions?)

Creates a menu item.

IMenuItem CreateMenuItem(MenuFactoryMenuItemOptions? options)
Parameter Type Description
options MenuFactoryMenuItemOptions

The options for the new menu item. When null, default options will be used.

Returns

IMenuItem

CreateMenuSeparator()

Creates a separator.

IMenuSeparator CreateMenuSeparator()

Returns

IMenuSeparator

Extension Methods