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 desired MenuItems into your ContextMenu and specify the relevant properties and actions. The Outline will look similar to the screenshot below:
3. 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, enable the advanced properties by clicking the Show Advanced Properties icon as illustrated in the figure below:
4. Set the contextMenuBehaviour property to provide.
If the user clicks the secondary mouse button, the ContextMenu will open according to the UI element where the mouse cursor is placed.