Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Top Property

Window.Top Property

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 Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, 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" .../>

Property Value

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

Identifier field

TopProperty

Metadata properties set to true

None

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.

NoteNote:

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft