#41 – Window Events at Startup and Shutdown
August 22, 2010 Leave a comment
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