A ContextMenu opens when the user clicks the secondary mouse button.
The term “context menu” denotes the fact that the menu content depends on the context in which is it opened. This context is composed of
...
1. In the Outline window of your View Designer, select Context Menus, click the secondary mouse button and choose Create Context Menu
2. Insert the MenuItems into your ContextMenu. The Outline will look similar to the screenshot below:
3. Build up your Menu as usual i. e. assign the relevant actions to the MenuActionItems, bind the relevant properties to the MenuCheckBoxes and MenuRadioButtons and so on…
4. Select the UI Element to which you want to assign the ContextMenu, select the contextMenuId property and click . A drop down list opens where you can select the relevant ContextMenu.
If you don’t see the properties contextMenuBehaviour and contextMenuId, you have to enable the advanced properties by clicking the Show Advanced Properties icon as illustrated in the figure below:
If the user clicks the secondary mouse button, the ContextMenu will open according to the UI element where the mouse cursor is placed.