Share via


Canvas.Top Attached Property

Definition

Gets or sets the distance between the top of an element and the top of its parent Canvas.

see GetTop, and SetTop
see GetTop, and SetTop
see GetTop, and SetTop

Remarks

The Top value is the vertical offset between the top edge of the parent Canvas and where the target element should be placed. You typically specify positive integer numbers. Non-integer Double values are allowed but can potentially cause subpixel rendering issues; see UIElement.UseLayoutRounding.

A Canvas.Top value is interpreted by the most immediate parent Canvas element from where the value is set. The value is used along with Canvas.Left to specify the layout characteristics of each child element of a Canvas.

Applies to

See also