Skip to main content
A newer version of this page is available. .

BaseView.RestoreLayoutFromXml(String) Method

Restores the layout from a specific XML file.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v19.1.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:

Note

The ControlName property should be set to a unique value for documents populated with the content on the fly (see Deferred Load). Otherwise, these documents cannot be restored.

Tip

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RestoreLayoutFromXml(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also