Skip to main content

RibbonControl.RestoreLayout(Object) Method

Restores the previously saved layout of a RibbonControl.

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Package: DevExpress.Wpf.Ribbon

Declaration

public virtual void RestoreLayout(
    object path
)

Parameters

Name Type Description
path Object

A path to the layout configuration file or a Stream from which a custom layout is to be restored.

Remarks

The RestoreLayout method loads contents of an .xml file or a stream generated by the RibbonControl.SaveLayout method. You can also use the RibbonControl.RestoreDefaultLayout method to discard all the layout customizations and roll back to the default layout.

Saving and restoring layouts is part of the Customization feature. See the Runtime Customization topic for more information.

See Also