I see Windows have a Loaded
event, but not a Loading
event (as there is Closing
and Closed
events).
My expectation was that the Loaded
event would occur before the window is actually displayed. However, looking at the Window Lifetime Events, it shows that the Loaded
event occurs after Activated
event.
I put some initialization code in the Loaded
event and there is a delay after the window is displayed and before my content appears. So what is the best event handler to use for window initialization that should occur before the window is displayed?