Back to Devexpress

ScrollControl.ScrollBars Property

wpf-devexpress-dot-xpf-dot-core-dot-scrollcontrol.md

latest2.3 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public ScrollBars ScrollBars { get; set; }
vb
Public Property ScrollBars As ScrollBars

Property Value

TypeDescription
ScrollBars

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

|

Available values:

NameDescription
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

DragScrolling

ScrollControl Class

ScrollControl Members

DevExpress.Xpf.Core Namespace