Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonControl.RestoreLayout(Object) Method

Restores the previously saved layout of a RibbonControl.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v24.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