Back to Devexpress

BarManager.SaveLayoutToXml(String) Method

wpf-devexpress-dot-xpf-dot-bars-dot-barmanager-dot-savelayouttoxml-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

BarManager.SaveLayoutToXml(String) Method

Saves the layout of bars to an XML file.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public virtual void SaveLayoutToXml(
    string xmlFile
)
vb
Public Overridable Sub SaveLayoutToXml(
    xmlFile As String
)

Parameters

NameTypeDescription
xmlFileString

An XML file to which the layout is stored.

|

Remarks

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

Note

For the layout of bars to be saved, set the DevExpress.Xpf.Core.Serialization.DXSerializer.DXSerializer.SerializationID attached property for a BarManager to any object (for example, a string).

See Also

RestoreLayoutFromStream(Stream)

RestoreLayoutFromXml(String)

SaveLayoutToStream(Stream)

Saving and Restoring a Bar Layout

BarManager Class

BarManager Members

DevExpress.Xpf.Bars Namespace