-
-
Notifications
You must be signed in to change notification settings - Fork 96
Basic Layout and Panel
Roman Shapiro edited this page Jul 30, 2019
·
20 revisions
Every widget has following properties related to the layout:
Name | Type | Default | Description |
---|---|---|---|
Left/Top | int | 0 | X/Y Addition |
Width/Height | int? | null | Width/Height of the widget, if set to null, then it is automatically calculated |
HorizontalAlignment/VerticalAlignment | enum | Depends on a widget, it's either Stretch or Left/Top | How control is horizontally/vertically aligned in the container |
PaddingLeft/PaddingTop PaddingBottom/PaddingRight | int | 0 | Padding |
GridPositionX/GridPositionY | int | 0 | Position in the grid |
GridSpanX/GridSpanY | int | 1 | Span in the grid |
Note. Properties which names start with 'Grid' are used only in the Grid container.
Panel is simple container. Following MML demonstrates usage of layout properties with it:
It would result in following UI:
[[images/Panel.png]]