Back to Devexpress

PopupMenuBase.Ribbon Property

windowsforms-devexpress-dot-xtrabars-dot-popupmenubase-ed9d74c4.md

latest2.2 KB
Original Source

PopupMenuBase.Ribbon Property

Specifies the RibbonControl responsible for managing the PopupMenuBase object.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Manager")]
public virtual RibbonControl Ribbon { get; set; }
vb
<DefaultValue(Nothing)>
<DXCategory("Manager")>
Public Overridable Property Ribbon As RibbonControl

Property Value

TypeDefaultDescription
RibbonControlnull

A RibbonControl responsible for managing the PopupMenuBase object.

|

Remarks

For the PopupMenuBase object to work correctly, it must be bound to a BarManager or RibbonControl object. If the menu is not bound to the BarManager/RibbonControl, the menu is not displayed. Items displayed by the popup menu belong to the bound BarManager/RibbonControl.

When you drop a popup menu to a form at design time, it searches for a Bar Manager or Ribbon Control within this form. If any of these objects is found, the popup menu is bound to it. When creating a popup menu at runtime, you need to manually bind the menu to the BarManager/Ribbon Control via the menu’s constructor, the Ribbon or PopupMenuBase.Manager property.

See Also

PopupMenuBase Class

PopupMenuBase Members

DevExpress.XtraBars Namespace