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

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public ScrollBars ScrollBars { get; set; }

#Property Value

Type Description
ScrollBars

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

Available values:

Name Description
None

Specifies that scroll bars will not be displayed.

Auto

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

#Remarks

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