Skip to main content
A newer version of this page is available. .

WindowsFormsSettings.AllowPixelScrolling Property

Gets or sets whether smooth pixel-based scrolling is enabled for controls. This is a static property.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v22.1.dll

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

Declaration

public static DefaultBoolean AllowPixelScrolling { get; set; }

Property Value

Type Description
DefaultBoolean

A DefaultBoolean value that specifies whether smooth pixel-based scrolling is enabled for controls.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

If the AllowPixelScrolling property is set to Default or False, pixel scrolling is disabled. If this property is set to True, smooth pixel-based scrolling is enabled for controls.

You can override this setting for GridControl and TreeList controls using the GridOptionsBehavior.AllowPixelScrolling and TreeListOptionsBehavior.AllowPixelScrolling properties, respectively.

See Also