#614 – Events that Fire When You Switch Between Windows

If your application has multiple windows, the user can switch between the different windows.  The sequence of events when switching from one window (1) to another (2) is as follows:

  • Window.Deactivated  (#1)
  • Window.Activated  (#2)
  • Window.PreviewLostKeyboardFocus  (#1)
  • Window.PreviewGotKeyboardFocus  (#2)
  • Window.IsKeyboardFocusWithinChanged  (#1)
  • Window.IsKeyboardFocusWithinChanged  (#2)
  • Window.IsKeyboardFocusChanged  (#1)
  • Window.IsKeyboardFocusChanged  (#2)
  • Window.LostKeyboardFocus  (#1)
  • Window.GotKeyboardFocus  (#2)
  • Window.Deactivated  (#2)

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

2 Responses to #614 – Events that Fire When You Switch Between Windows

  1. Pingback: Application Event Sequence in WPF | Around computing

  2. Pingback: Dew Drop – July 31, 2012 (#1,375) | Alvin Ashcraft's Morning Dew

Leave a comment