Window.IsActive Property
.NET Framework 4.6 and 4.5
Gets a value that indicates whether the window is active.
Namespace: System.Windows
Assembly: PresentationFramework (in PresentationFramework.dll)
An active window is the user's current foreground window and has the focus, which is signified by the active appearance of the title bar. An active window will also be the top-most of all top-level windows that don't explicitly set the Topmost property.
Show: