Skip to main content
All docs
V25.1

DevExpress v25.1 Update — Your Feedback Matters

Our What's New in v25.1 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

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
DefaultBoolean

True to invert the horizontal scrolling direction; otherwise, False or Default.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

#Remarks

The following controls scroll content in the direction of a swipe or horizontal movement of the mouse wheel:

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());
}
See Also