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

Declaration

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

Property Value

Type Description
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:

Value Description
Default For desktop scroll mode (see ScrollBarBase.UIMode), Default is equivalent to RestoreThumbPosition mode. For touch scroll mode, it is equivalent to the KeepThumbAtTerminalPosition mode.
RestoreThumbPosition The scroll bar thumb restores the position that existed before dragging.
KeepThumbAtTerminalPosition 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.

See Also