-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.Canvas.Top |
winrt attachedproperty |
Gets or sets the distance between the top of an element and the top of its parent Canvas.
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