Export (0) Print
Expand All

Window.Topmost Property

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 Namespace:  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" .../>

Property Value

true if the window is topmost; otherwise, false.

Identifier Field

TopMostProperty

Metadata properties set to true

None

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
NoteNote:

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft