Gets or sets the position of the window's top edge, in relation to the desktop.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
<TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")> _ Public Property Top As Double Get Set
[TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")] public double Top { get; set; }
[TypeConverterAttribute(L"System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")] public: property double Top { double get (); void set (double value); }
[<TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>] member Top : float with get, set
<object Top="double" .../>
|
Identifier field |
|
|
Metadata properties set to true |
None |
When the Window is maximized or minimized, this value represents the top edge of the restore point for the Window.
This property cannot be set through a style.
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 is a valid value for Top.
Note
|
|---|
|
You cannot set or get this property when a window is hosted in a browser. |
.NET Framework
Supported in: 4, 3.5, 3.0.NET Framework Client Profile
Supported in: 4, 3.5 SP1Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note