Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.


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

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML-Namespaces:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public bool Topmost { get; set; }
/** @property */
public boolean get_Topmost ()

/** @property */
public void set_Topmost (boolean value)

public function get Topmost () : boolean

public function set Topmost (value : boolean)

<object Topmost="bool" .../>


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.

The following figure illustrates the use of the TopMost property.

Illustration of window z-ordering

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

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0