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
See GetAllowMiddleMouseScrolling(DependencyObject) and SetAllowMiddleMouseScrolling(DependencyObject, Boolean).
Returns
Type | Default | Description |
---|---|---|
Boolean | 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
- AccordionControl
- DocumentPreviewControl
- GanttControl
- GridControl
- ListBoxEdit
- PdfViewerControl
- PivotGridControl
- PropertyGridControl
- RichEditControl
- SpreadsheetControl
- TreeListControl
- TreeViewControl
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