Back to Devexpress

ScrollBarBase.ApplyUIMode(ScrollBarBase) Method

windowsforms-devexpress-dot-xtraeditors-dot-scrollbarbase-dot-applyuimode-x28-devexpress-dot-xtraeditors-dot-scrollbarbase-x29.md

latest2.2 KB
Original Source

ScrollBarBase.ApplyUIMode(ScrollBarBase) Method

Applies the default scroll mode to the specified scroll bar.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public static ScrollBarBase ApplyUIMode(
    ScrollBarBase scroll
)
vb
Public Shared Function ApplyUIMode(
    scroll As ScrollBarBase
) As ScrollBarBase

Parameters

NameTypeDescription
scrollScrollBarBase

A ScrollBarBase control to which the default UI mode should be applied.

|

Returns

TypeDescription
ScrollBarBase

A ScrollBarBase control whose UI mode has been set.

|

Remarks

The ApplyUIMode method allows you to apply the default UI mode (ScrollUIMode.Default) to the specified scroll bar. The default UI mode is optimal for desktop applications.

To specify the UI mode for all scroll bars, set the WindowsFormsSettings.ScrollUIMode static (Shared in VB) property before your application window is initialized.

See Also

ScrollUIMode

UIMode

ScrollBarBase Class

ScrollBarBase Members

DevExpress.XtraEditors Namespace