[Version 2.0] Good practice for Loading a stored layout

Aug 23, 2012 at 8:32 AM

I was loading a serialized layout in the constructor of my window.
In case there was a floating window to restore, the app crashed saying that we cannot set the owner of the floating window to the main window cause it has not been shown yet.

So, I guess, the good practice is to load the serialized layout only in the window_loaded event when it has already been shown.

Am I right?

Aug 23, 2012 at 3:52 PM

You are :)