Top Attached Property
Collapse the table of content
Expand the table of content

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)

See GetTop, SetTop

Property Value

Type: System::Double

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

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.

Identifier field


Metadata properties set to true


Return to top
© 2016 Microsoft