This documentation is archived and is not being maintained.

Window::Topmost Property

Gets or sets a value that indicates whether a window appears in the topmost z-order. This is a dependency property.

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

property bool Topmost {
	bool get ();
	void set (bool value);
<object Topmost="bool" .../>

Property Value

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

Identifier field


Metadata properties set to true


A window whose Topmost property is set to true appears above all windows whose Topmost properties are set to false.

In the group of windows that have Topmost property is set to true, the window that is currently activated is the topmost window. Likewise for the group of windows that have Topmost property is set to false.


You cannot set or get this property when a window is hosted in a browser.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0