Enum Anchor
Represents a location for an Element to attach to within its parent (or within the screen's viewport if it is the RootElement).
public enum Anchor
- Extension Methods
Fields
AutoCenter = 10
This is an auto-anchoring value. This anchor will cause an element to be placed below its older sibling, aligned to the horizontal center of its parent.
AutoInline = 12
This is an auto-anchoring value. This anchor will cause an element to be placed at the top right of its older sibling, or at the start of the next line if there is no space to the right of its older sibling.
AutoInlineBottom = 16
This is an auto-anchoring value. This anchor will cause an element to be placed at the bottom right of its older sibling, or at the start of the next line if there is no space to the right of its older sibling.
AutoInlineBottomIgnoreOverflow = 17
This is an auto-anchoring value. This anchor is an overflow-ignoring version of AutoInlineBottom, meaning that the element will never be forced into the next line. Note that, when using this property, it is very easy to cause an element to overflow out of its parent container.
AutoInlineCenter = 14
This is an auto-anchoring value. This anchor will cause an element to be placed at the center right of its older sibling, or at the start of the next line if there is no space to the right of its older sibling.
AutoInlineCenterIgnoreOverflow = 15
This is an auto-anchoring value. This anchor is an overflow-ignoring version of AutoInlineCenter, meaning that the element will never be forced into the next line. Note that, when using this property, it is very easy to cause an element to overflow out of its parent container.
AutoInlineIgnoreOverflow = 13
This is an auto-anchoring value. This anchor is an overflow-ignoring version of AutoInline, meaning that the element will never be forced into the next line. Note that, when using this property, it is very easy to cause an element to overflow out of its parent container.
AutoLeft = 9
This is an auto-anchoring value. This anchor will cause an element to be placed below its older sibling, aligned to the left edge of its parent.
AutoRight = 11
This is an auto-anchoring value. This anchor will cause an element to be placed below its older sibling, aligned to the right edge of its parent.
BottomCenter = 7
Attach to the center of the bottom edge of the parent
BottomLeft = 6
Attach to the bottom left corner of the parent
BottomRight = 8
Attach to the bottom right corner of the parent
Center = 4
Attach to the center position of the parent
CenterLeft = 3
Attach to the center of the left edge of the parent
CenterRight = 5
Attach to the center of the right edge of the parent
TopCenter = 1
Attach to the center of the top edge of the parent
TopLeft = 0
Attach to the top left corner of the parent
TopRight = 2
Attach to the top right corner of the parent