New to Telerik UI for WinForms? Download free 30-day trial

Save and Load Layout

RadLinearGauge supports Save/Load layout functionality which gives you the opportunity to preserve gauge elements' settings and restore them later. The layout settings are written in XML file. You can save the layout at design or at run time.

Design Time

You can easily save/load the layout with the smart tag.

Figure 1: Smart Tag

WinForms RadGauges Save/Load Smart Tag

Run Time

You can save/load the layout in code as well.

Save/Load Layout

radLinearGauge1.SaveLayout("Layout.xml");
radLinearGauge1.LoadLayout("Layout.xml");

radLinearGauge1.SaveLayout("Layout.xml")
radLinearGauge1.LoadLayout("Layout.xml")

See Also

In this article