Back to Devexpress

RibbonControl.SaveLayout(String) Method

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

latest2.1 KB
Original Source

RibbonControl.SaveLayout(String) Method

Saves the custom layout of a RibbonControl as an XML file.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

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

Parameters

NameTypeDescription
pathString

A path to the layout configuration file to which a custom layout is saved.

|

Remarks

The SaveLayout(System.String) method saves the custom layout of a RibbonControl to an XML file. To restore the custom layout, use the RibbonControl.RestoreLayout(System.String) method.

You can also use the RibbonControl.SaveDefaultLayout() method to save the current RibbonControl layout as 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

RestoreLayout(String)

Runtime Customization

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace