Edit

Share via


WindowStartupLocation Enum

Definition

Specifies the position that a Window will be shown in when it is first opened. Used by the WindowStartupLocation property.

C#
[System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)]
public enum WindowStartupLocation
Inheritance
WindowStartupLocation
Attributes

Fields

Name Value Description
Manual 0

The startup location of a Window is set from code, or defers to the default Windows location.

CenterScreen 1

The startup location of a Window is the center of the screen that contains the mouse cursor.

CenterOwner 2

The startup location of a Window is the center of the Window that owns it, as specified by the Owner property.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9