Skip to main content

RangeControl.AllowPanMode Property

Gets or sets whether the current selection can be dragged within the Viewport (client area).

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
public bool AllowPanMode { get; set; }

Property Value

Type Default Description
Boolean true

true if the current selection can be dragged within the Viewport; otherwise, false.

Remarks

If the AllowPanMode option is enabled, end-users can drag the current selection within the Viewport. This allows users to change range bounds while the range length remains fixed.

If you set the AllowPanMode property to false, dragging with a mouse within the client area leads to recalculating the range’s bounds and length based on the initial and final mouse positions.

AllowPanMode = true AllowPanMode = false
RangeControlAllowPanModeTrue RangeControlAllowPanModeFalse
See Also