The Direction property allows you to change the orientation of the gauge as well as the direction in which the pointer moves. For example, setting the Direction property to Down changes the gauge orientation from horizontal to vertical and the pointer starts from the top of the gauge and move towards the bottom.
The following image shows how the LinearGauge appears after this property has been set.
The following code examples demonstrate how to set this property in C# and XAML. These examples use the sample created in the LinearGauge Quick Start section.
C# |
Copy Code
|
---|---|
gauge.Direction = LinearGaugeDirection.Down; |
C# |
Copy Code
|
---|---|
<c1:C1LinearGauge Value="35" Min="0" Max="100" Thickness="0.1" Direction="Down" PointerColor="Blue"> |