Skip to main content

ScrollControl.DragScrolling Property

Gets or sets if the drag scrolling feature is enabled. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool DragScrolling { get; set; }

Property Value

Type Description
Boolean

true if the drag scrolling feature is enabled; otherwise, false.

Remarks

The content of scrollable layout controls (which are the LayoutControl, FlowLayoutControl and ScrollBox) can be scrolled in multiple ways. Using a mouse scroll button and ScrollControl.ScrollBars (if enabled) are traditional ones. Setting the DragScrolling to true enables the drag scrolling feature.

Drag scrolling allows an end-user to scroll the content of a layout control by dragging its background (the Background property must be specified in order to process mouse events) or its child (in case this child is static and does not process the MouseDown event itself). The scrolling can go beyond the valid scrollable area. In this case, as soon as the mouse button is released, inertial scrolling in the opposite direction occurs.

See Also