Back to Devexpress

BarOptions.AutoPopupMode Property

windowsforms-devexpress-dot-xtrabars-dot-baroptions-2ce31a5b.md

latest3.0 KB
Original Source

BarOptions.AutoPopupMode Property

Gets or sets which bar items are automatically popped-up when hovered over.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(BarAutoPopupMode.Default)]
[XtraSerializableProperty]
public virtual BarAutoPopupMode AutoPopupMode { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(BarAutoPopupMode.Default)>
Public Overridable Property AutoPopupMode As BarAutoPopupMode

Property Value

TypeDefaultDescription
DevExpress.XtraBars.BarAutoPopupModeDefault

A BarAutoPopupMode enumerator value that specifies which bar items are automatically popped-up when hovered over.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AutoPopupMode
Bar

.OptionsBar .AutoPopupMode

|

Remarks

When end-user invoke the drop-down menu for an item within the Bar, they can move the mouse pointer to other contained within this Bar items with sub-menus. Depending on the AutoPopupMode properties, some of these menus will be shown automatically. The table below lists the behavior of different menus, based on the AutoPopupMode property value. In GIF animations within the ‘Example’ column, the ‘DropDown Button’ button is a BarButtonItem with a drop-down menu (see the BarButtonItem.DropDownControl property) and the ‘Submenu’ button is a BarSubItem object.

BarAutoPopupMode enumerator valueDescriptionExample
AllAll items with sub-menus are automatically popped-up on hover. This is the default behavior.
OnlyMenuOnly bar items with the BarButtonItem.DropDownControl display their menus automatically.
NoneAn end-user has to click an item to display its drop-down menu. No items are popped-up automatically.

See Also

BarOptions Class

BarOptions Members

DevExpress.XtraBars Namespace