TileControl.SaveLayoutToXml(String) Method

Saves the current TileControl layout to an XML file.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll


public virtual void SaveLayoutToXml(
    string xmlFile


Name Type Description
xmlFile String

A String value specifying the path to the file in which the layout should be stored. If an empty string is specified, an exception is raised.


The SaveLayoutToXml method creates an .xml file to save the current custom TileControl layout at runtime. Later, this file can be loaded via the TileControl.RestoreLayoutFromXml method to restore the layout. You can also save a custom user layout via the TileControl.SaveLayoutToRegistry and TileControl.SaveLayoutToStream methods.

Saved layouts keep information about group and item arrangements and content. Item appearance settings are not kept.


You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.

See Also