Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonControl.GetPopupContextMenu(Control) Method

Gets the popup menu which is assigned to a control.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(null)]
public PopupMenuBase GetPopupContextMenu(
    Control control
)

#Parameters

Name Type Description
control Control

The control whose popup menu is to be returned.

#Returns

Type Default Description
PopupMenuBase null

The popup menu which is assigned to the control.

#Remarks

With the help of the RibbonControl component, you can associate popup context menus with external controls. These menus will be opened when right-clicking the controls.

The RibbonControl.SetPopupContextMenu method assigns a context menu to a control. The GetPopupContextMenu method returns the assigned menu. To assign a menu to a control at design time, use the PopupContextMenu extender property exposed by a control (ensure that the RibbonControl component has been dropped onto the same form). For more information, see the RibbonControl topic.

See Also