Window.IsActive Property

Gets a value that indicates whether the window is active.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public bool IsActive { get; }

Property Value

Type: System.Boolean
true if the window is active; otherwise, false.


The application is not running outside the browser.


The current thread is not the user interface (UI) thread.

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 is also the top-most of all top-level windows that do not explicitly set the TopMost property.

Use the Activate method to attempt to activate the window if it is not already active.


Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions