Back to Devexpress

RibbonControl.RestoreLayoutException Event

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribboncontrol-d73dc7f5.md

latest2.3 KB
Original Source

RibbonControl.RestoreLayoutException Event

Occurs when the RibbonControl fails to restore its layout.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public event RibbonSaveRestoreLayoutExceptionEventHandler RestoreLayoutException
vb
Public Event RestoreLayoutException As RibbonSaveRestoreLayoutExceptionEventHandler

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

AllowCustomization

RestoreLayout(String)

SaveLayout(String)

Runtime Customization

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace