Back to Devexpress

ScrollControl.DragScrolling Property

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

latest2.0 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool DragScrolling { get; set; }
vb
Public Property DragScrolling As Boolean

Property Value

TypeDescription
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

ScrollBars

ScrollControl Class

ScrollControl Members

DevExpress.Xpf.Core Namespace