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

In This Article

Saves the current RibbonControl layout as the default layout.

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Package: DevExpress.Wpf.Ribbon

#Declaration

public virtual void SaveDefaultLayout()

#Remarks

If the RibbonControl.AllowCustomization property equals true, end-users can customize the RibbonControl at runtime (refer to the Runtime Customization topic for the details). Users can discard their customizations by clicking the ‘Reset’ button in the Ribbon Customization Window (see the image below). To do it in code, use the RibbonControl.RestoreDefaultLayout method.

WpfRibbonLayoutRestore

Use the SaveDefaultLayout method to set the current RibbonControl layout as the default layout, so that clicking the ‘Reset’ button or calling the RibbonControl.RestoreDefaultLayout method will restore this layout instead of initial one.

See Also