Skip to main content

ScrollControl.ScrollBars Property

Gets or sets if scroll bars are enabled for the current layout control. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v22.2.dll

NuGet Package: DevExpress.Wpf.Core


public ScrollBars ScrollBars { get; set; }

Property Value

Type Description

A ScrollBars enumerator value, specifying whether scroll bars are enabled for the current layout control.

Available values:

Name Description

Specifies that scroll bars will not be displayed.


Specifies that required scroll bars will be automatically shown if a current container’s size is not enough to display its content.


The content within a scrollable layout control (the ScrollControl class descendant) can be scrolled via scroll bars, the drag scroll feature (see the ScrollControl.DragScrolling link) or mouse scroll button. Depending on the ScrollBars enumerator value passed to the ScrollBars property, you can set whether scroll bars for the current control are enabled or not. If enabled, the control will automatically display a horizontal or vertical scroll bar (or both of them), depending on which control’s dimension (the height or the width) is insufficient to display the control’s content in its entirety.

Scrolling animation can be turned on/off via the ScrollControl.AnimateScrolling property.

See Also