Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Window.IsActive Property

 

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:
© 2017 Microsoft