Back to Devexpress

RibbonControl.RestoreLayout(String) Method

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribboncontrol-dot-restorelayout-x28-system-dot-string-x29.md

latest2.2 KB
Original Source

RibbonControl.RestoreLayout(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 saved layout of a RibbonControl.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public virtual void RestoreLayout(
    string path
)
vb
Public Overridable Sub RestoreLayout(
    path As String
)

Parameters

NameTypeDescription
pathString

A path to the XML file from which a custom layout is restored.

|

Remarks

The RestoreLayout(System.String) method loads contents of an XML file generated by the RibbonControl.SaveLayout(System.String) method. You can also use the RibbonControl.RestoreDefaultLayout() method to discard the layout customization and roll back to the default layout.

Saving and restoring layouts is part of the Customization feature. Refer to the following section for more information: Runtime Customization.

See Also

SaveLayout(String)

Runtime Customization

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace