-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathGridPage.razor
67 lines (55 loc) · 2.86 KB
/
GridPage.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@page "/layouts/grids"
<ContentPage Title="Grids">
<ScrollView>
<VerticalStackLayout Spacing="12">
<Label Text="Grid with GridCells:" />
<Grid ColumnDefinitions="*,*,*" RowDefinitions="*,*,*" HorizontalOptions="LayoutOptions.Center" WidthRequest="300">
<GridCell Row="0" Column="0" ColumnSpan="2" RowSpan="2">
<Frame BackgroundColor="Colors.DarkRed">
<Label Text="1" HorizontalOptions="LayoutOptions.Center" />
</Frame>
</GridCell>
<GridCell Row="0" Column="2">
<Frame BackgroundColor="Colors.DarkSeaGreen">
<Label Text="2" HorizontalOptions="LayoutOptions.Center" />
</Frame>
</GridCell>
<GridCell Row="1" Column="2">
<Frame BackgroundColor="Colors.LightCyan">
<Label Text="3" HorizontalOptions="LayoutOptions.Center" />
</Frame>
</GridCell>
<GridCell Row="2" Column="0">
<Frame BackgroundColor="Colors.DarkGreen">
<Label Text="4" HorizontalOptions="LayoutOptions.Center" />
</Frame>
</GridCell>
<GridCell Row="2" Column="1" ColumnSpan="2">
<Frame BackgroundColor="Colors.DarkViolet">
<Label Text="5" HorizontalOptions="LayoutOptions.Center" />
</Frame>
</GridCell>
</Grid>
<Label Text="Grid with attached properties:" />
<Grid ColumnDefinitions="*,*,*" RowDefinitions="*,*,*" HorizontalOptions="LayoutOptions.Center" WidthRequest="300">
<Frame BackgroundColor="Colors.DarkViolet" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2">
<Label Text="1" HorizontalOptions="LayoutOptions.Center" />
</Frame>
<Frame BackgroundColor="Colors.DarkRed" Grid.Row="0" Grid.Column="1">
<Label Text="2" HorizontalOptions="LayoutOptions.Center" />
</Frame>
<Frame BackgroundColor="Colors.DarkSeaGreen" Grid.Row="0" Grid.Column="3">
<Label Text="3" HorizontalOptions="LayoutOptions.Center" />
</Frame>
<Frame BackgroundColor="Colors.LightCyan" Grid.Row="@(1)" Grid.Column=@(1) Grid.ColumnSpan="2" Grid.RowSpan="2">
<Label Text="4" HorizontalOptions="LayoutOptions.Center" />
</Frame>
<Frame BackgroundColor="Colors.DarkGreen" Grid.Row="2" Grid.Column="0">
<Label Text="5" HorizontalOptions="LayoutOptions.Center" />
</Frame>
</Grid>
</VerticalStackLayout>
</ScrollView>
</ContentPage>
@code {
}