Skip to main content
A newer version of this page is available. .

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, 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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DragScrolling property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also