Description
The ContextMenu 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. |
Name | Context menu identfier |
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="All Pages in This Tab" Command="{x:Static l:Commands.Script}" CommandParameter="LayoutSaveAll"/> The CommandParameter has to contain the name of the Visual Basic procedure, defined in appropriate AddIn, e.g. PageDesignerAddIn within FredSystemAddIn. 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, RelativeSource={RelativeSource AncestorType={x:Type l:ShellWindow}}}"/> |
A cascading menu is simply a MenuItem with just a name, but without CommandParameter, e.g.: |
The separator is just this: <Separator/> |