Skip to content

Commit 947bec5

Browse files
agneszitteMartinZikmund
authored andcommitted
fix: UniformGridLayout Orientation and added Margin for the Grid
1 parent 58562fe commit 947bec5

File tree

1 file changed

+2
-0
lines changed
  • UI/PongWars/UnoPongWars/UnoPongWars/Presentation

1 file changed

+2
-0
lines changed

UI/PongWars/UnoPongWars/UnoPongWars/Presentation/GamePage.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public GamePage()
1818
.Background(Theme.Brushes.Background.Default)
1919
.Content(
2020
new Grid()
21+
.Margin(20)
2122
.RowDefinitions("*,auto,auto")
2223
.Children(
2324
new Viewbox()
@@ -29,6 +30,7 @@ public GamePage()
2930
.Width(160)
3031
.Height(160)
3132
.Layout(new UniformGridLayout()
33+
.Orientation(Orientation.Vertical)
3234
.MaximumRowsOrColumns(16))
3335
.ItemTemplate<Cell>(cell =>
3436
new Grid()

0 commit comments

Comments
 (0)