Skip to main content
A newer version of this page is available. .

WindowsFormsSettings.ScrollUIMode Property

Gets or sets whether scrollbars are optimized for desktop or touch applications. This is a static (Shared in VB) property.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v19.1.dll

Declaration

public static ScrollUIMode ScrollUIMode { get; set; }

Property Value

Type Description
ScrollUIMode

A ScrollUIMode enumeration value that specifies how scroll bars are displayed.

Available values:

Name Description
Default

The same as Desktop.

Desktop

Scroll bars optimized for desktop applications.

ScrollBarBase_DesktopUI

The scroll bar displays the arrow buttons. The auto-hide and auto-expand functionality are not supported.

Touch

Scroll bars optimized for touch applications.

ScrollBarBase_TouchUI

The scroll bar supports the auto-hide functionality. It automatically appears when an end-user flicks the scrollable content (or the mouse cursor moves over the control), and disappears if the control is not scrolled (or the mouse cursor does not move) for some time. The arrow buttons are never displayed.

Fluent

Scroll bars optimized for Fluent Design Forms.

ScrollBarBase_Fluent

The scroll bar supports the auto-expand functionality. It automatically expands when an end-user flicks the scrollable content (or the mouse cursor moves over the control), and collapses to a thin stripe if the control is not scrolled (or the mouse cursor does not move) for some time. The arrow buttons are never displayed.

Remarks

Specify the ScrollUIMode property before your application window is initialized.


static class Program {
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main() {
        WindowsFormsSettings.ScrollUIMode = ScrollUIMode.Fluent;
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new Form1());
    }
}

To specify the UI mode for a particular scroll bar, use the ScrollBarBase.ApplyUIMode method.

See Also