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.v20.1.dll

Declaration

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

Property Value

Type Description
ScrollBars

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

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