WindowStartupLocation Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

[LocalizabilityAttribute(LocalizationCategory.None, Readability = Readability.Unreadable)]
public enum WindowStartupLocation

Member nameDescription
CenterOwner

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

CenterScreen

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

Manual

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

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Return to top
Show: