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.SaveLayout(Object) Method

Saves a custom RibbonControl‘s layout into an XML file or a stream.

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Package: DevExpress.Wpf.Ribbon

#Declaration

public virtual void SaveLayout(
    object path
)

#Parameters

Name Type Description
path Object

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

#Remarks

The SaveLayout method saves a custom layout of a RibbonControl to an .xml file or a stream. To restore the custom layout, use the RibbonControl.RestoreLayout method.

You can also use the RibbonControl.SaveDefaultLayout method to save the current RibbonControl layout as the default layout.

See the Runtime Customization topic to learn more about the Ribbon Customization feature.

See Also