Window.IsActive Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value that indicates whether the window is active.

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

public bool IsActive { get; }

Property Value

Type: System.Boolean

true if the window is active; otherwise, false. The default is false.

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.

Identifier field

IsActiveProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Return to top
Show: