Description
The Menu section within Menuset section of the GN4ShellMenus section of the *_TABITEMS.XML file contains one or more nodes such as MenuItem that define the drop-down menus of the main menu bar, e.g. File, Edit, Tools etc.
Members
xmlns | namespaces. |
ShellMenuItem | Defines a drop down menu or menu command. |
Examples
Every ShellMenuItem has a similar structure that contains the following:
Typically, a menu command is defined as: <l:ShellMenuItem Header="Article by Template..." CommandParameter="ArticleNewTemplateDlg"/> The CommandParameter has to contain the name of the Visual Basic script, defined in appropriate add-in. Some menu commands may be different and point not to a VB procedure, but to an internal function, such as: <l:ShellDynamicMenuSeparator ItemsSource="{Binding Path=(l:ShellUI.Instance).MostRecentlyUsed.FilteredItems, RelativeSource={RelativeSource AncestorType={x:Type l:ShellWindow}}}"/> |
A cascading menu is simply a ShellMenuItem with just a Header, but without CommandParameter, e.g.: |
The separator is just this: <Separator/> |