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.RestoreLayoutException Event

Occurs when the RibbonControl fails to restore its layout.

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Package: DevExpress.Wpf.Ribbon

#Declaration

public event RibbonSaveRestoreLayoutExceptionEventHandler RestoreLayoutException

#Event Data

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

#Remarks

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

See Also