Skip to main content
A newer version of this page is available. .
All docs
V22.2

ScrollBarExtensions.AllowMiddleMouseScrolling Attached Property

Gets or sets whether to enable the middle-click to scroll functionality.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v22.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

Returns

Type Default Description
Boolean false

true to enable the middle-click to scroll functionality; otherwise, false.

Remarks

The following code sample enables the middle-click to scroll functionality in the GridControl:

Middle Mouse Scrolling

<Window ...
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid">
    <dxg:GridControl ...  
                     dx:ScrollBarExtensions.AllowMiddleMouseScrolling="True"/>

Supported Controls

You can also enable this option in other controls that meet the following requirements:

  • The control uses the standard ScrollViewer.
  • The control does not implement custom scrolling logic.
See Also