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