[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
   [Expand]Getting Started
    [Expand]Gauge Types
    [Expand]Visual Elements
    [Expand]Appearance Customization
     Coordinate System
     Data Binding
     Saving and Restoring Gauge Layout and Style Settings
   [Expand]Design-Time Features
   [Expand]Product Information
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Saving and Restoring Gauge Layout and Style Settings

Gauges, as well as many other DevExpress controls, support save/restore the layout feature. This feature gives you the ability to store different layout versions of your gauges and cycle through them when needed.

Using the GaugeControlBase class API, you can store gauge layouts in XML files, stream or registry.

All these methods allow you to save and restore overall gauge layout settings: currently existing Visual Elements, their behavior and style settings. If you do not want your gauge layout to be affected, but rather wish to save and restore various style presets, use related Save(Restore)Style... methods instead. Same as with saving layouts, these methods allow you to save style settings to a local storage or stream, but do not allow you to save them to a registry.

Gauge paint styles can also be managed by the StyleController component.

Expanded Workspace Manager

Additionally to the methods mentioned above, you can utilize the Workspace Manager component. This component provides a centralized way to save layouts of all supported DevExpress controls in one global layout called workspace. This component allows you to create multiple predefined application workspaces that your users will be able to choose from, as well as save and restore their own custom workspaces.

Is this topic helpful?​​​​​​​