Skip to main content

AccordionControl.ScrollBarMode Property

Gets or sets the vertical scroll bar’s visibility and style.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(ScrollBarMode.Default)]
[DXCategory("Appearance")]
public ScrollBarMode ScrollBarMode { get; set; }

Property Value

Type Default Description
ScrollBarMode Default

The vertical scroll bar’s visibility and style.

Available values:

Name Description
Touch

A touch-style vertical scroll bar is used. This scroll bar supports the auto-hide functionality.

Default

A standard vertical scroll bar is used by default. A touch-style scroll bar is used when the WindowsFormsSettings.ScrollUIMode is set to Touch. The touch-style scroll bar supports the auto-hide functionality.

Hidden

The scroll bar is hidden.

Auto

A scroll bar is displayed when the content height is greater than the control’s visible height. Otherwise, it is hidden.

AutoCollapse

Entirely collapses the scroll bar’s area when there is no need to display the scroll bar. It is recommended to use this mode only when the AccordionControl.AnimationType property is set to None.

Fluent

Scroll bars optimized for Fluent Design Forms. Automatically expands when an end-user flicks the scrollable content (or the mouse cursor moves over the control), and collapses to a thin stripe if the control is not scrolled (or the mouse cursor does not move) for some time. The arrow buttons are never displayed.

Remarks

If the ScrollBarMode property equals “AutoCollapse” or “Hidden”, the Accordion control collapses the scroll bar area when there is no need to display the scroll bar. In other modes, the scroll bar’s client area remains empty and visible even when there is no scroll bar.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ScrollBarMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also