Canvas.Top Attached Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.
- Type: Double
- Identifier field: TopProperty
- Accessor methods: GetTop, SetTop