Export (0) Print
Expand All

Canvas::Top Attached Property

Gets or sets a value that represents the distance between the top of an element and the top of its parent Canvas.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

See GetTop, SetTop
<object Canvas.Top="double" .../>

Property Value

Type: System::Double
A Double that represents the offset position from the top of a parent Canvas. The default value is NaN.

Identifier field

TopProperty

Metadata properties set to true

None

The Top offset of a child element does not affect the size of a parent Canvas.

If you specify them, the attached properties Canvas::Top or Canvas::Left take priority over Canvas::Bottom or Canvas::Right.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft