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