Back to Devexpress

ScrollBarExtensions.AllowMiddleMouseScrolling Attached Property

wpf-devexpress-dot-xpf-dot-core-dot-scrollbarextensions-ca777088.md

latest3.0 KB
Original Source

ScrollBarExtensions.AllowMiddleMouseScrolling Attached Property

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

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetAllowMiddleMouseScrolling(DependencyObject) and SetAllowMiddleMouseScrolling(DependencyObject, Boolean).

Returns

TypeDefaultDescription
Booleanfalse

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:

xaml
<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

MiddleMouseScrollSpeed

MiddleMouseScrollThreshold

ScrollBarExtensions Class

ScrollBarExtensions Members

DevExpress.Xpf.Core Namespace