RibbonControl.SaveDefaultLayout() Method

Saves the current RibbonControl layout as the default layout.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v20.1.dll

Declaration

public virtual void SaveDefaultLayout()
Public Overridable Sub 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