Skip to main content
All docs
V24.1

ScrollBarExtensions.AllowMiddleMouseScrolling Attached Property

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.1.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