windowsforms-113854-controls-and-libraries-gauges-examples-how-to-create-a-linear-gauge-design-time.md
This is the second tutorial of the XtraGauges Getting Started series. It will guide you through the process of creating a Linear Gauge and adjusting its common settings.
This tutorial consists of the following steps.
In this step, we will perform the common actions required when you add a Gauge control to your application.
After that, you will see the following wizard.
Note that after you drop the Gauge in the previous step, the Gauge Preset Manager may be invoked automatically (if its “Show the preset manager every time a new Gauge control is dropped onto the form” option is enabled).
The Preset Manager allows you to create a ready-to-use gauge by loading it from the preset collection. The next step demonstrates how it is done.
You can load the gauge preset in one of two ways:
The following image shows how to load the Africa Sunset preset using the second approach.
After that, the Form1 window should look like the following.
As you can see, the new Gauge contains a lever bar, two scales, and background layer.
Let’s delete the second scale of the linear gauge.
On the Designer left side, you can see the linear gauge containing only the first scale (see the image below).
To customize a scale, double click scale1 node, as shown above.
In the invoked Scales-Element Designer , change the scale’s properties and click the Ranges… button as shown in the following image.
In the Ranges editor, add two range elements to the circular gauge by clicking the Add button.
Specify the Range0 properties as shown below.
For the Range1 , execute the following changes and click OK.
Click OK to close the Scale Ranges editor.
Click OK to close Scales -Element Designer.
Then, you will see the following confirmation window.
Note
The confirmation window occurs in the Gauge Designer every time the current layout is changed.
Run the application to see the result.