How To Set Up State Persistence For Radial Gauge Control In Winforms

Sample date Updated on Jul 09, 2026
gauge-configuration-storage gauge-value-persistence persistent-ui-state radial-gauge-state-persistence save-and-restore-gauge-state serialization-in-winforms syncfusion-gauge-customization syncfusion-gauge-example syncfusion-toolkit-for-winforms syncfusion-winforms-controls ui-state-management user-settings-persistence windows-forms-development winforms-data-persistence winforms-radial-gauge

Learn how to implement state persistence for the Syncfusion WinForms RadialGauge control. This guide explains how to save and restore gauge settings such as pointer values, ranges, annotations, and appearance across sessions using serialization, application settings, or file storage techniques.

What this sample includes

  • Saving RadialGauge properties to an XML file
  • Loading RadialGauge properties from an XML file
  • Persisting the Value of the gauge
  • Persisting the VisualStyle (theme) of the gauge
  • Using XmlSerializer for state persistence
  • Applying saved settings back to the control

How it works

  • A custom class (RadialGaugeAdvSettings) is used to hold the properties that need to be persisted.
  • The SaveRadialGaugeProperties method serializes the gauge state into an XML file using XmlSerializer.
  • The LoadRadialGaugeProperties method deserializes the XML file and applies the stored values to the RadialGauge.
  • The file is stored in the application's current directory.

Requirements

  • .NET Framework (WinForms)
  • Syncfusion WinForms RadialGauge control
  • System.Xml.Serialization

Output

This sample demonstrates how to configure State Persistence in the WinForms Radial Gauge control.

RadialGauge demo

Troubleshooting

Path Too Long Exception

If you are facing a "Path too long" exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project.

For a detailed step-by-step guide with relevant code snippets, refer to the How to configure State Persistence for WinForms Radial Gauge control.

Up arrow