Canvas.Top Attached Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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

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

TopProperty

Metadata properties set to true

None

Return to top
Show: