Back to Devexpress

BarManager.RestoreLayoutFromXml(String) Method

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

latest2.0 KB
Original Source

BarManager.RestoreLayoutFromXml(String) Method

SECURITY-RELATED CONSIDERATIONS

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

Restores the layout of bars from an XML file.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Parameters

NameTypeDescription
xmlFileString

An XML file that contains the layout of bars to be loaded.

|

Remarks

Use the BarManager.AddNewItems property to set whether new items, added to the BarManager after an .xml file was created, should remain after restoring this layout.

See Also

RestoreLayoutFromStream(Stream)

SaveLayoutToStream(Stream)

SaveLayoutToXml(String)

AddNewItems

BarManager Class

BarManager Members

DevExpress.Xpf.Bars Namespace