Back to Devexpress

ScrollBarExtensions.AllowShiftKeyMode Attached Property

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

latest1.7 KB
Original Source

ScrollBarExtensions.AllowShiftKeyMode Attached Property

Gets or sets whether users can hold the Shift key and use the mouse wheel to scroll data horizontally.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetAllowShiftKeyMode(DependencyObject) and SetAllowShiftKeyMode(DependencyObject, Boolean).

Returns

TypeDefaultDescription
Booleanfalse

true to enable horizontal scrolling with the Shift key pressed; otherwise, false.

|

Remarks

The following code sample enables horizontal scrolling with the Shift key pressed 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.AllowMouseScrolling="True"
                     dx:ScrollBarExtensions.AllowShiftKeyMode="True"/>

See Also

ScrollBarExtensions Class

ScrollBarExtensions Members

DevExpress.Xpf.Core Namespace