title: Understand WPF Window Events
body: <p>I see Windows have a <code>Loaded</code> event, but not a <code>Loading</code> event (as there is <code>Closing</code> and <code>Closed</code> events).</p>
  
  <p>My expectation was that the <code>Loaded</code> event would occur before the window is actually displayed. However, looking at the <a href="https://msdn.microsoft.com/en-us/library/ms748948(v=vs.110).aspx" rel="noreferrer">Window Lifetime Events</a>, it shows that the <code>Loaded</code> event occurs after <code>Activated</code> event.</p>
  
  <p>I put some initialization code in the <code>Loaded</code> 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?</p>