Window.IsActive Property (System.Windows)

Switch View :
ScriptFree
.NET Framework Class Library
Window.IsActive Property

Gets a value that indicates whether the window is active.

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

Visual Basic
Public ReadOnly Property IsActive As Boolean
	Get
C#
public bool IsActive { get; }
Visual C++
public:
property bool IsActive {
	bool get ();
}
F#
member IsActive : bool

Property Value

Type: System.Boolean
true if the window is active; otherwise, false. The default is false.
Dependency Property Information

Identifier field

IsActiveProperty

Metadata properties set to true

None

Remarks

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.

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference

Other Resources