Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

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.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:

<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