Hi Henry,
Thank you for your interest in Syncfusion Products.
The NewDockStateEndLoad event occurs immediately after a new dock state has been loaded. Whenever an application with one or more docked controls is loaded this event will be triggered more than once and this causes calling infinite loop when loading dock state. To avoid this we need to use the flag variable that allows the docking manager to load the docking state only once.
Kindly refer to the code snippet that illustrates this:
bool flag = false;
private void dockingManager1_NewDockStateEndLoad(object sender, EventArgs e)
{
if (flag == false)
{
flag = true;
this.dockingManager1.LoadDockState();
}
}
http://files.syncfusion.com/support/Tools.Windows/7.1.0.30/F80282/main.htmPlease let me know if any concerns.
Regards,
Fathima