Back to Devexpress

WindowsFormsSettings Class

windowsforms-devexpress-dot-xtraeditors-041f8632.md

latest2.4 KB
Original Source

WindowsFormsSettings Class

Exposes appearance and behavior settings common to all DevExpress controls.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public static class WindowsFormsSettings
vb
Public Module WindowsFormsSettings

Remarks

The WindowsFormsSettings class exposes a number of static ( Shared in Visual Basic) properties and methods to specify the appearance and behavior settings common to all DevExpress controls. These members allow you to customize the look and feel settings, skinning features, common fonts for menus and printing, scroll bars and scrolling modes, etc.

Note

All properties exposed by the WindowsFormsSettings class are static and must be accessed accordingly – through the class itself rather than its instance. The following code snippet illustrates an example.

csharp
static void Main() { 
    // ...
    DevExpress.XtraEditors.WindowsFormsSettings.TouchUIMode = DevExpress.LookAndFeel.TouchUIMode.True;
    DevExpress.XtraEditors.WindowsFormsSettings.TouchScaleFactor = 2.1F;
    DevExpress.XtraEditors.WindowsFormsSettings.ScrollUIMode = ScrollUIMode.Touch;
    DevExpress.XtraEditors.WindowsFormsSettings.ShowTouchScrollBarOnMouseMove = false;
}
vb
Sub Main()
    ' ...
    DevExpress.XtraEditors.WindowsFormsSettings.TouchUIMode = DevExpress.LookAndFeel.TouchUIMode.True
    DevExpress.XtraEditors.WindowsFormsSettings.TouchScaleFactor = 2.1F
    DevExpress.XtraEditors.WindowsFormsSettings.ScrollUIMode = ScrollUIMode.Touch
    DevExpress.XtraEditors.WindowsFormsSettings.ShowTouchScrollBarOnMouseMove = False
End Sub

Inheritance

Object WindowsFormsSettings

See Also

WindowsFormsSettings Members

DevExpress.XtraEditors Namespace