Back to Devexpress

Save and Restore Layout Pages

windowsforms-1129-controls-and-libraries-ribbon-bars-and-menu-bars-bar-manager-designer-saving-and-restoring-layout-pages.md

latest1.9 KB
Original Source

Save and Restore Layout Pages

  • Jun 03, 2025

The Layout section in the Bar Manager Designer allows you to save and load bar layouts at design time.

Save LayoutClick Save Layout… to open a dialog that saves the Bar Manager layout. After saving, the designer displays a message box with the file path. The saved layout can be loaded into other Bar Managers.Restore LayoutClick Restore Layout… to open a dialog that loads a previously saved layout. The designer applies the layout to the current Bar Manager immediately.

.NET Designer

Saves the layout to an XML file.

Tip

Use the RestoreLayoutFromXml(String) method to load the layout at runtime.

.NET Framework Designer

Saves the layout in binary format. Use this layout only at design time.

Note

Binary files are not compatible with XML layouts saved by BaseView.SaveLayoutToStream and BaseView.SaveLayoutToXml methods. You cannot restore binary layouts using BarManager.RestoreFromStream or BarManager.RestoreFromXml.

See Also

Saving and Restoring a Bars Layout Automatically

Saving and Restoring a Bars Layout Manually