Closed kbilsted closed 4 years ago
Do you want to center to border or the text within it?
I'm just reading the docs and trying it out. eg
Box
Aligns the Content control vertically (Top/Center/Bottom/Stretch) and horizontally (Left/Center/Right/Stretch).
HorizontalStackPanel
Stacks multiple controls horizontally.
since I'm not using Box
i dont understand why the content is maxmized. Perhaps details are missing in the docs?
The Border
will always take all of the available space when not stored in a control that defines a different layout behavior.
The only way to center elements is using the Box
control.
The proper way of implementing it is described in #13
Just learning the framework. Is this as expected? I thought it required a ´Box´ in order for the content to be centered.