DashboardPopupMenuShowingEventArgs Class
Provides data for the DashboardViewer.PopupMenuShowing and the DashboardDesigner.PopupMenuShowing events.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v19.1.Win.dll
Declaration
Remarks
The DashboardViewer.PopupMenuShowing and the DashboardDesigner.PopupMenuShowing events occur when an end-user invokes a popup menu and allows you to customize this menu. A customizable popup menu can be invoked when an end-user:
- right-clicks the dashboard item;
- clicks a command button in the dashboard title;
- clicks a command button in the dashboard item caption.
To identify the popup menu location, use the DashboardPopupMenuShowingEventArgs.DashboardArea property. To get the area of the dashboard item for which the event has been raised, use the DashboardPopupMenuShowingEventArgs.DashboardItemArea property. To obtain the dashboard item name for which the event has been raised, use the DashboardItemMouseEventArgs.DashboardItemName property. To identify the clicked command button, use the DashboardPopupMenuShowingEventArgs.ButtonType property.
Use the DashboardPopupMenuShowingEventArgs.Menu property to customize a popup menu. To prevent end-users from invoking a popup menu, set the DashboardPopupMenuShowingEventArgs.Allow property to false or assign null to the DashboardPopupMenuShowingEventArgs.Menu property.