Hi. When I load a large existing .xml file with the dock manager layout information:
ultraDockManager.LoadFromXML(stream);
I'm getting an exception in the control's VisibleChanged event. I want to be able to pin the control in code (after loading) and this is the code:
ultraDockManager.PaneFromControl(
this).Pinned = true;
However, this code is executed as the .xml file is being loaded. And during that time, the code above sometimes causes a null reference exception. The call does return a valid DockableControlPane object. But, setting the Pane.Pinned property = true causes an exception.
Any idea why?
Greg,
Would you be able to attach to this forum post a sample which reproduces this exception? I would then be able to research the cause of the issue.