Back to Devexpress

ValueIndicatorBase.SnapMode Property

wpf-devexpress-dot-xpf-dot-gauges-dot-valueindicatorbase-be537807.md

latest1.8 KB
Original Source

ValueIndicatorBase.SnapMode Property

Gets or sets whether the gauge control snaps the indicator value to tickmarks.

Namespace : DevExpress.Xpf.Gauges

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

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public IndicatorSnapMode SnapMode { get; set; }
vb
Public Property SnapMode As IndicatorSnapMode

Property Value

TypeDescription
IndicatorSnapMode

A mode that specifies whether or not to snap the indicator value to major/minor tickmarks.

|

Available values:

NameDescription
None

Does not snap the indicator value to any tickmarks.

| | MinorTickmarks |

Snaps the indicator value to minor tickmarks.

| | MajorTickmarks |

Snaps the indicator value to major tickmarks.

|

Remarks

When users change the indicator value, they can set any value. You can prohibit users from setting values bettween tickmarks. Set the SnapMode property to MajorTickmarks / MinorTickmarks to snap the indicator value to major/minor tickmarks.

Run Demo: Interactivity

See Also

ValueIndicatorBase Class

ValueIndicatorBase Members

DevExpress.Xpf.Gauges Namespace