RibbonControl.SetPopupContextMenu(Control, PopupMenuBase) Method
In This Article
Sets a specific PopupMenuBase object as the target control’s pop-up.
Namespace: DevExpress.XtraBars.Ribbon
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public void SetPopupContextMenu(
Control control,
PopupMenuBase menu
)
#Parameters
Name | Type | Description |
---|---|---|
control | Control | A Control to be associated with a pop-up. |
menu | Popup |
A Popup |
#Remarks
The SetPopupContextMenu method associates a pop-up menu managed by the current RibbonControl with any Control on a form. A control’s pop-up menu can be invoked at runtime with a left mouse-click.
Use the PopupMenuBase.Ribbon property to set a RibbonControl that will manage this PopupMenuBase object.
See Also