DesktopMenuBarPresentation enum

Namespace Runic.Desktop in Runic.Desktop 0.23.0

public enum DesktopMenuBarPresentation

Where a window shows the menu bar of DesktopHostOptions.MenuBar (DesktopWindowOptions.MenuBarPresentation).

Remarks

This set is closed.

Values

Native

Native = 0

The default: natively, in the macOS application menu bar, in the window on Windows, and on Linux in the desktop's global menu where one is shown, else in the window.

Page

Page = 1

No native bar: the page renders DesktopHost.MenuBar and runs items with DesktopWindow.TryExecuteMenuItemAsync. The host keeps matching the items' shortcuts. On macOS the declared menus stay in the application menu bar, which every window shares, and the placement is DesktopMenuBarPlacement.Global.

None

None = 2

No bar anywhere, for a window that offers its commands otherwise; the items' shortcuts still run. On macOS the declared menus stay in the application menu bar, which every window shares.