Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Collapse]Gauges
   [Expand]Getting Started
   [Collapse]Concepts
    [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]Examples
   [Expand]Product Information
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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.

How would you rate this topic?​​​​​​​