Skip to main content
CanvasTop Attached Property

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
See GetTop, SetTop
See GetTop, SetTop
See GetTop, SetTop

Property Value


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 CanvasTop or CanvasLeft take priority over CanvasBottom or CanvasRight.

Identifier field


Metadata properties set to true


Return to top