One of the gauges you can create with the RadGauge suite, is a linear gauge. It is represented by a rectangular container with a linear scale in it. Additionally, it can display various indicators that point to a certain value on the scale. This topic will walk you through the creation of a sample application that contains a linear RadGauge.
In order to use the controls from the RadGauge suite in your projects, you have to add references to the following assemblies:
The linear gauge type is represented by the RadLinearGauge class. It is a linear scale, which can display multiple scales and ranges.
Example 1: Creating RadLinearGauge
<Grid xmlns:dataVisualization="using:Telerik.UI.Xaml.Controls.DataVisualization"> <dataVisualization:RadLinearGauge Height="200" MaxValue="50" LabelOffset="-10" telerik:RadLinearGauge.Orientation="Vertical" /> </Grid>
Image 1: Result from Example 1
RadLinearGauge class inherits from the RadGauge class - See the inherited properties.
- LabelOffset (double): Gets or sets an offset that is used to nudge the labels to the right or left (top/bottom if Orientation is horizontal) of the ticks. This is an attached property.