In the application we restore the previously open controls. The controls position and docking information is stored and loaded using Load and Save from XML. The following steps are performed for doing the loading.
1. All previously loaded controls are added to UltraDockManager by 1a. Create the control 1b. Create a DockableControlPaneand add the control to it. 1c. Create a DockControlArea (Floating) and add the pane to it. 1d. Adding the DockControlArea to the UltraDockManager 2. The newly created DockableControlPaneis marked as Closed tp avoid flickering. pane.Closed = true; 3. After all the controls are loaded. DockSettings are loaded using LoadFromXML.
Using the above mentioned steps causes the control to be shown in diffferent (intial) position and then repositoned making the application to appear with lot of flickering.
Is there anything I can do to avoid this flickering effect?
Have you tried setting Visible on all controls to False until the LoadFromXML call returns? You can also try to call LoadFromXml after the InitializeComponent call in the constructor. This will load the file before the form has been shown, so no flickering will be seen on screen.