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

Declaration

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

Property Value

Type Description
ScrollUIMode

A ScrollUIMode enumeration value that specifies how scroll bars are 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