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 = 10This 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 = 12This 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 = 16This 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 = 17This 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 = 14This 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 = 15This 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 = 13This 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 = 9This 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 = 11This 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 = 7Attach to the center of the bottom edge of the parent
BottomLeft = 6Attach to the bottom left corner of the parent
BottomRight = 8Attach to the bottom right corner of the parent
Center = 4Attach to the center position of the parent
CenterLeft = 3Attach to the center of the left edge of the parent
CenterRight = 5Attach to the center of the right edge of the parent
TopCenter = 1Attach to the center of the top edge of the parent
TopLeft = 0Attach to the top left corner of the parent
TopRight = 2Attach to the top right corner of the parent