#41 – Window Events at Startup and Shutdown

At application startup, the Window events that are fired (in order) for the main window are:

  • Initialized – Main window is being created
  • IsVisibleChanged IsVisible property set to true
  • SizeChanged – Size property set to size of window
  • LayoutUpdated – Window layout changes
  • SourceInitialized – Window is attached to Win32 window handle
  • Activated – Window becomes foreground window
  • PreviewGotKeyboardFocus – Window getting focus
  • IsKeyboardFocusWithinChanged IsKeyboardFocusWithin property set to true
  • IsKeyboardFocusedChanged IsKeyboardFocused property set to true
  • GotKeyboardFocus – Window now has keyboard focus
  • LayoutUpdated – Window layout changes
  • Loaded – Window is now laid out, fully rendered
  • ContentRendered – All window content has been rendered

At application shutdown, the Window events fired (in order) are:

  • Closing – Window is going to close
  • IsVisibleChanged IsVisible property set to false
  • Deactivated – Window becomes background window
  • IsKeyboardFocusWithinChanged IsKeyboardFocusWithin property set to false
  • IsKeyboardFocusedChanged IsKeyboardFocused property set to false
  • LostKeyboardFocus – Window no longer has keyboard focus
  • Closed – Window is closing
Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: