This topic provides a conceptual overview of the UltraRadialGauge™ control’s scale. It describes the properties of the scale and also provides an example of how to implement it.
The following topics are prerequisites to understanding this topic:
This topic contains the following sections:
Used to represent the values of the gauge visually, a scale defines a range of values in the UltraRadialGauge control. The tick marks and ranges are all the elements that can be added to a scale.
The following image is a preview of the UltraRadialGauge control with the scale added.
The following table summarizes the properties of the UltraRadialGauge control related to the scale.
The screenshot below illustrates how the UltraRadialGauge renders with its scale properties configured as follows:
Following is the code that implements this example.
In C#:
var radialGauge = new UltraRadialGauge(); radialGauge.ScaleBrush = new SolidColorBrush(Color.LightGray); radialGauge.ScaleStartExtent = 0.5; radialGauge.ScaleEndExtent = 0.4; radialGauge.ScaleOversweep = 15; radialGauge.ScaleSweepDirection = SweepDirection.Counterclockwise;
In Visual Basic:
Dim radialGauge As UltraRadialGauge = New UltraRadialGauge radialGauge.ScaleBrush = New SolidColorBrush(Color.LightGray) radialGauge.ScaleStartExtent = 0.5 radialGauge.ScaleEndExtent = 0.4 radialGauge.ScaleOversweep = 15 radialGauge.ScaleSweepDirection = SweepDirection.Counterclockwise
The following topics provide additional information related to this topic: