編輯

共用方式為


Window.Topmost Property

Definition

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

public:
 property bool Topmost { bool get(); void set(bool value); };
public bool Topmost { get; set; }
member this.Topmost : bool with get, set
Public Property Topmost As Boolean

Property Value

true if the window is topmost; otherwise, false.

Remarks

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.

Note

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

Dependency Property Information

Identifier field TopmostProperty
Metadata properties set to true None

Applies to

See also