Method SetMainMenu
SetMainMenu(Window, MainMenu?)
Sets the main menu for the specified window.
void SetMainMenu(Window window, MainMenu? menu)
Parameters
windowWindowThe window for which the main menu is being set. Cannot be null.
menuMainMenuThe main menu to set. Pass null to remove the current main menu.
Remarks
This method associates the specified main menu with the given window.
If menu is null, the current main
menu for the window will be removed.