Skip to main content

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

ScaleOptions.SnapBehavior Property

Gets or sets the behavior that specifies how the Chart bound Range Control Client snaps its range bounds. This is a dependency property.

Namespace: DevExpress.Xpf.Charts.RangeControlClient

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public SnapBehaviorBase SnapBehavior { get; set; }

#Property Value

Type Description
SnapBehaviorBase

The SnapBehaviorBase‘s child class instance that specifies a snapping behavior.

#Property Paths

You can access this nested property as listed below:

Object Type Path to SnapBehavior
ChartBoundRangeControlClient
.ScaleOptions .SnapBehavior

#Remarks

The following behaviors are available:

Behavior Sample Image Description
AutoSnapBehavior ChartRangeControlClientSnapMode_Auto Identifies the Chart bound Range Control Client’s Snap Behavior, in which the selected range snaps to the Client’s grid.
ChartSnapBehavior ChartRangeControlClientSnapMode_GridMeasureUnit The Chart Snap Behavior specifies that the Range control’s selected range is aligned by the bound chart’s measurement.
ManualSnapBehavior ChartRangeControlClientSnapMode_Manual Chart bound Range Control Client Snap Behavior, in which the selected range is aligned using parameters that the behavior specifies manually via the ManualSnapBehavior.Offset, ManualSnapBehavior.Spacing, ManualSnapBehavior.Alignment (for date-time scale) properties.
See Also