Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3166
Lots of flickering when restoring control position using UltraDockManager.LoadFromXML
posted
Hi,

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?

Parents
  • 44743
    Verified Answer
    posted

    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.

Reply Children
No Data