Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.


Gets or sets the position of the window's top edge, in relation to the desktop. This is a dependency property.

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

[TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")] 
public double Top { get; set; }
/** @property */
public double get_Top ()

/** @property */
public void set_Top (double value)

public function get Top () : double

public function set Top (value : double)

<object Top="double" .../>


The position of the window's top, in logical units (1/96").

Identifier field


Metadata properties set to true


If you do not specify a value, Top is set to the system default value. You can also specify the system default value by setting Top to NaN. Neither NegativeInfinity nor PositiveInfinity are valid values for Top.


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