Skip to main content

DockLayoutManager.SaveLayoutToXml(String) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Saves the layout of dock panes to an XML file.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v25.2.dll

NuGet Package: DevExpress.Wpf.Docking

Declaration

public void SaveLayoutToXml(
    string path
)

Parameters

Name Type Description
path String

An XML file to which the layout is stored.

Remarks

The saved layout can be restored using the DockLayoutManager.RestoreLayoutFromXml method.

See Saving and Restoring the Layout of Dock Panels and Controls to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SaveLayoutToXml(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