Hi all,
I have made an application which showns a lists of client. You can open a client, and the client's details are shown.
My application takes quite a long time to start, so I want to improve the startup performance.
In pseude-code, my main window looks like this
<Window>
<c:WelcomeAnimation Visibility="Visible" />
<c:ClientList Visibility="Collapsed" />
<c:ClientDetails Visibility="Collapsed" />
</Window>
Now, before the main window is shown, I see that the ClientList and ClientDetails are intialized. This is time consuming, so I want to delay this initialization and do it when the main window is shown and the WelcomeAnimation is running.
This will give at least the perception that the application starts faster.
Question: What are my options in window design. I like to have the above XAML view. I can of course do everything in code-behind, so my main window XAML will be nothing more than
<Window />
but maybe there are better options I'm not aware of?