Skip to main content

BaseView.RestoreLayoutFromXml(String) Method

SECURITY NOTE

Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.

Restores the layout from a specific XML file.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public void RestoreLayoutFromXml(
    string path
)

Parameters

Name Type Description
path String

The path to the XML file that contains the layout that should be restored.

Remarks

Use the following methods to save the layout in the corresponding format/storage and subsequently restore it:

You can handle the BaseView.RestoreLayoutError event to fix exceptions that occur during the restore layout operation.

Important

The Layout Control saves and restores the View’s properties and properties of documents. It does not recreate documents with their content. You should recreate documents and then restore the layout.

The ControlName property should be set to a unique value for documents populated with the content on the fly (see Deferred Load) to restore documents correctly.

Tip

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

See Also