WindowsFormsSettings.InvertHorizontalScrolling Property
Gets or sets whether right swipe gestures and horizontal mouse wheel movements scroll the content of controls to the left, and vice versa.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v25.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
public static DefaultBoolean InvertHorizontalScrolling { get; set; }
#Property Value
Type | Description |
---|---|
Default |
|
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
#Remarks
The following controls scroll content in the direction of a swipe or horizontal movement of the mouse wheel:
- Data Grid (all Views)
- TreeList
- Gantt Control
- VGridControl
Touchpad, touch screen, and mouse users may have different expectations regarding horizontal scrolling behavior. Some applications invert scrolling directions to match platform conventions or user preferences.
The InvertHorizontalScrolling
property allows you to modify scrolling behavior to ensure consistency across applications and align with user expectations.
Enable the InvertHorizontalScrolling
property at application startup (in Program.cs) to invert the horizontal scrolling direction. Right swipe gestures and horizontal mouse wheel movements scroll content to the left.
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
WindowsFormsSettings.InvertHorizontalScrolling = DevExpress.Utils.DefaultBoolean.True;
Application.Run(new Form1());
}