In a WPF Application, What happens after my code in the main window constructor is executed?

Posted by KyleGobel on Stack Overflow See other posts from Stack Overflow or by KyleGobel
Published on 2010-03-29T15:43:45Z Indexed on 2010/03/29 21:13 UTC
Read the original article Hit count: 335

Filed under:
|

I'm wondering what happens after the constructor is done executing my code, because the constructor is taking like 10 seconds to run on a cold start up, but according to the profiler, my code is done executing in like 2 seconds.

Also stepping through the code in the debugger, after the last line of my constructor, I sit there and wait for 7-8 seconds before the window appears. Why is this?

If the window is loading content or something, why isn't it displayed on the screen, done loading or not after the constructor finishes it's job? What's the hold up? (or how do i figure that out)

© Stack Overflow or respective owner

Related posts about wpf

Related posts about constructor