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.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
public static DragScrollThumbBeyondControlMode DragScrollThumbBeyondControlMode { get; set; }
#Property Value
Type | Description |
---|---|
DevExpress. |
A Drag |
#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:
Value | Description |
---|---|
Default | For desktop scroll mode (see Scroll |
Restore |
The scroll bar thumb restores the position that existed before dragging. |
Keep |
The 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.