windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-7d2783f0.md
Occurs when the restored layout contains documents with duplicate ControlName properties.
Namespace : DevExpress.XtraBars.Docking2010.Views
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[LogifyIgnoreException]
public class NonUniqueControlNameException :
RestoreLayoutException
<LogifyIgnoreException>
Public Class NonUniqueControlNameException
Inherits RestoreLayoutException
Follow the steps below to fix this exception:
void tabbedView1_RestoreLayoutError(object sender, DevExpress.Utils.Serializing.RestoreLayoutErrorEventArgs e) {
foreach (var exception in e.Exceptions) {
if (exception is NonUniqueControlNameException nonUniqueException)
nonUniqueException.ControlName = $"{nonUniqueException.ControlName}_1";
}
e.Throw = false;
}
Object Exception SystemException InvalidOperationException DevExpress.Utils.Serializing.RestoreLayoutException NonUniqueControlNameException
See Also