Dieser Artikel wurde noch nicht bewertet - Dieses Thema bewerten.

Window.WindowStartupLocation-Eigenschaft

Gets or sets the position of the window when first shown.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML-Namespaces:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public WindowStartupLocation WindowStartupLocation { get; set; }
/** @property */
public WindowStartupLocation get_WindowStartupLocation ()

/** @property */
public void set_WindowStartupLocation (WindowStartupLocation value)

public function get WindowStartupLocation () : WindowStartupLocation

public function set WindowStartupLocation (value : WindowStartupLocation)

<object WindowStartupLocation="WindowStartupLocation" .../>

Eigenschaftenwert

A WindowStartupLocation value that specifies the position of a window when first shown. The default value is Manual.

Setting WindowStartupLocation to Manual causes a window to be positioned according to its Left and Top property values. If you set WindowStartupLocation to CenterScreen or CenterOwner and the system cannot determine the window's location, the window is positioned according to its Left and Top property values. If there are multiple screens, CenterScreen is specified, and the system can determine the window's location, the window is centered on the screen which contains the mouse cursor.

HinweisHinweis:

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

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Fanden Sie dies hilfreich?
(1500 verbleibende Zeichen)
© 2013 Microsoft. Alle Rechte vorbehalten.