Since the Gauge control is a data visualization tool, it can let you set a specific value across a linear or radial scale. This helps to analyze the current value of the Gauge control and measure how this value falls between the minimum and maximum value points.
For example, let's say, you want to create a Linear Gauge measuring the percentage of work completed. The amount of work done is measured using the Value property.
Another example can be using a Radial Gauge to measure temperature. The current temperature is measured using the Value property.
The step determines how the intervals of the Value can be set when the user interacts with the control. For instance, if the Step is 25, and the minimum and maximum values are 0 and 100, respectively, the possible values will be 0, 25, 50, 75 and 100.
The step can be set using the Step property of the C1Gauge class.
XAML |
Copy Code
|
---|---|
<c1:C1LinearGauge Name="linearGauge" Value="75" Step="25" TextVisibility="All" HorizontalAlignment="Left" Margin="127,311,0,273" Width="532" Height="86"/> |
The Min and Max properties in the Gauge controls helps to set the minimum and maximum values of the gauge. The default values of minimum and maximum values in the Gauge control are 0 and 100.
But you can also set the minimum and maximum values of your choice via code.
The following code shows how to set the Min and Max properties in the Radial Gauge control:
XAML |
Copy Code
|
---|---|
<c1:C1RadialGauge x:Name="radialGauge" Min="0" Max="200" Value="60" HorizontalAlignment="Left" Margin="188,100,0,273" Height="297" Width="336"/> |
The pointer is an indicator that can be used to represent the gauge's current value. The indicator points to a value along the linear or radial scale.
The values can be be displayed as text or labels in the gauge using the GuageTextVisibility enum, which can take the following values:
Values | Snapshot |
All: Show the gauge's value, min, and max as text labels. | |
MinMax: Show the gauge's min and max values as text labels. | |
Value: Show the gauge's value as text label. | |
None: Do not show any text label in the gauge. |