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.

MenuFlyout CreateMenu()

Returns

MenuFlyout

CreateMenu(MenuFactoryMenuOptions?)

Creates a menu.

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

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

Returns

MenuFlyout

CreateMenuItem()

Creates a menu item using default options.

MenuItem CreateMenuItem()

Returns

MenuItem

CreateMenuItem(MenuFactoryMenuItemOptions?)

Creates a menu item.

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

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

Returns

MenuItem

CreateMenuSeparator()

Creates a separator.

Separator CreateMenuSeparator()

Returns

Separator

Extension Methods