Skip to main content

ValueIndicatorBase.Value Property

Gets or sets the value of a scale indicator.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v22.1.dll

NuGet Package: DevExpress.Wpf.Gauges


public double Value { get; set; }

Property Value

Type Description

Specifies the position of a value indicator on the scale.


The Value property of the value indicator can be changed not only programmatically, but also by end-users via mouse-clicks. This capability becomes available after setting the ValueIndicatorBase.IsInteractive property to true. To see how this can be done in real-life examples, refer to the How to: Enable Indicator Value’s Changing via a Mouse Click tutorial.

Snap Indicator Values to Tickmarks

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


This example illustrates how to create a CircularGaugeControl instance with a single ArcScale object.

View Example

<Window x:Class="DXGauges_Circular.MainWindow"
        Title="MainWindow" Height="350" Width="525">
        <dxga:CircularGaugeControl Name="circularGaugeControl1" >
                <dxga:CircularRedClockModel />
                <dxga:ArcScale StartValue="0" EndValue="12" 
                               StartAngle="-90" EndAngle="270"
                               MajorIntervalCount="12" MinorIntervalCount="5">
                        <dxga:ArcScaleLabelOptions ShowFirst="False" Orientation="LeftToRight" />
                        <dxga:ArcScaleNeedle Value="3" />
                        <dxga:ArcScaleNeedle Value="12" />
                        <dxga:ArcScaleMarker Value="7" />
                        <dxga:ArcScaleRangeBar AnchorValue="7" Value="3" />
                        <dxga:ArcScaleLayer />
                        <dxga:ArcScaleRange StartValue="0" EndValue="4" />
                        <dxga:ArcScaleRange StartValue="4" EndValue="8" />
                        <dxga:ArcScaleRange StartValue="8" EndValue="12" />
See Also