Topmost Property

Window.Topmost Property

 

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

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

public bool Topmost { get; set; }

Property Value

Type: System.Boolean

true if the window is topmost; otherwise, false.

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.

System_CAPS_noteNote

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

Identifier field

TopmostProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft