Nevron Open Vision Documentation
Application Menu

The application menu of a NOV ribbon is the drop down menu placed to the left of the ribbon tab headers. It fulfils the role of the File menu in traditional menu based UIs.

Parts

NOV ribbon application menu is accessible through the ApplicationMenu property of the ribbon tab and consists of 3 parts:

Example

The following code demonstrates how to create the application menu shown in the prevoius section:

Application Menu Example
Copy Code
NApplicationMenu appMenu = new NApplicationMenu("File");
NMenu menu = appMenu.MenuPane;

// Create the "Open" and "Save" menu items
menu.Items.Add(new NMenuItem(NResources.Image_32x32_folder_action_open_png, "Open"));
menu.Items.Add(new NMenuItem(NResources.Image_32x32_save_png, "Save"));

// Create the "Save As" menu item and its sub items
NMenuItem saveAsMenuItem = new NMenuItem(NResources.Image_32x32_save_as_png, "Save As");
saveAsMenuItem.Items.Add(new NMenuItem("PNG Image"));
saveAsMenuItem.Items.Add(new NMenuItem("JPEG Image"));
saveAsMenuItem.Items.Add(new NMenuItem("BMP Image"));
saveAsMenuItem.Items.Add(new NMenuItem("GIF Image"));
menu.Items.Add(saveAsMenuItem);

// Create the rest of the menu items
menu.Items.Add(new NMenuSeparator());
menu.Items.Add(new NMenuItem(NResources.Image_32x32_print_png, "Print"));
menu.Items.Add(new NMenuItem(NResources.Image_32x32_settings_options_png, "Options"));
menu.Items.Add(new NMenuSeparator());
menu.Items.Add(new NMenuItem(NResources.Image_32x32_delete_png, "Exit"));

// Create a label for the content pane
appMenu.ContentPane = new NLabel("This is the content pane");

// Create two buttons for the footer pane
appMenu.FooterPane = new NApplicationMenuFooterPanel();
appMenu.FooterPane.Add(new NButton("Options..."));
appMenu.FooterPane.Add(new NButton("Exit"));
See Also
Send Feedback