Skip to main content

RibbonControl.SaveDefaultLayout() Method

Saves the current RibbonControl layout as the default layout.

Namespace: DevExpress.Xpf.Ribbon

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