RibbonControl.SaveLayoutException Event

Occurs when the RibbonControl fails to save its layout.

Namespace: DevExpress.Xpf.Ribbon

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


public event RibbonSaveRestoreLayoutExceptionEventHandler SaveLayoutException
Public Event SaveLayoutException As RibbonSaveRestoreLayoutExceptionEventHandler

Event Data

The SaveLayoutException event's data class is DevExpress.Xpf.Ribbon.RibbonSaveRestoreLayoutExceptionEventArgs.


You can set the RibbonControl.AllowCustomization property to true to allow end-users to customize the RibbonControl layout. Layouts can be imported or exported from a file via the RibbonControl.RestoreLayout or RibbonControl.SaveLayout methods respectively. If the RibbonControl.SaveLayout method fails, the SaveLayoutException event occurs. You can handle this event and get its e.Exception property value to get the exception that caused the failure.

See Also