IsActive Property (IWindow)
Indicates whether the window is the foreground object (currently active).

C# Syntax

bool IsActive {get;}