Back to Devexpress

WindowsFormsSettings.DragScrollThumbBeyondControlMode Property

windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-344d2595.md

latest3.0 KB
Original Source

WindowsFormsSettings.DragScrollThumbBeyondControlMode Property

Gets or sets whether the scroll bar thumb restores its previous position or keeps the terminal position when it is dragged beyond a control. This is a static property.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public static DragScrollThumbBeyondControlMode DragScrollThumbBeyondControlMode { get; set; }
vb
Public Shared Property DragScrollThumbBeyondControlMode As DragScrollThumbBeyondControlMode

Property Value

TypeDescription
DevExpress.XtraEditors.DragScrollThumbBeyondControlMode

A DragScrollThumbBeyondControlMode enumeration value that specifies whether the scroll bar thumb restores its previous position or keeps the terminal position when dragged beyond a control.

|

Remarks

When an end-user drags the scroll bar thumb beyond a control, the scroll bar either keeps the terminal scroll position or restores the previous position (the position that existed before dragging). Use the DragScrollThumbBeyondControlMode property to specify this behavior. The DragScrollThumbBeyondControlMode enumeration provides the following values:

ValueDescription
DefaultFor desktop scroll mode (see ScrollBarBase.UIMode), Default is equivalent to RestoreThumbPosition mode. For touch scroll mode, it is equivalent to the KeepThumbAtTerminalPosition mode.
RestoreThumbPositionThe scroll bar thumb restores the position that existed before dragging.
KeepThumbAtTerminalPositionThe scroll bar thumb keeps the terminal scroll position.

If the RestoreThumbPosition mode is enabled, the WindowsFormsSettings.DragScrollThumbBeyondControlThreshold property allows you to specify the threshold, in pixels, beyond which the previous scroll bar thumb position is restored.

See Also

DragScrollThumbBeyondControlThreshold

UIMode

WindowsFormsSettings Class

WindowsFormsSettings Members

DevExpress.XtraEditors Namespace