Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ScrollBarBase.ApplyUIMode(ScrollBarBase, ScrollUIMode) Method

Applies the specified UI mode to the specified scroll bar.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

public static ScrollBarBase ApplyUIMode(
    ScrollBarBase scroll,
    ScrollUIMode controlMode
)

#Parameters

Name Type Description
scroll ScrollBarBase

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

controlMode ScrollUIMode

A ScrollUIMode enumeration value specifying the UI mode to be applied.

#Returns

Type Description
ScrollBarBase

A ScrollBarBase control whose UI mode has been set.

#Remarks

The ApplyUIMode method allows you to apply the specified UI mode to the specified scroll bar. See the ScrollUIMode enumeration to learn about the available scroll bar UI modes.

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