WPF: Detect when Window loses focus
WpfWpf Problem Overview
How do I detect when my window loses focus?
Wpf Solutions
Solution 1 - Wpf
Use the Window.Deactivated
event.
You may be looking for the Application.Deactivated
event, which fires only if the user switched to a different application.