|
|
|
@ -0,0 +1,41 @@ |
|
|
|
|
<?xml version="1.0" encoding="utf-8" ?> |
|
|
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" |
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
|
|
|
|
x:Class="XamarinStudy.Views.SampleGridLayoutPage"> |
|
|
|
|
<ContentPage.Content> |
|
|
|
|
<Grid> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
|
<ColumnDefinition Width="150"/> |
|
|
|
|
<ColumnDefinition Width="*"/> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
|
<RowDefinition Height="Auto"/> |
|
|
|
|
<RowDefinition Height="5*"/> |
|
|
|
|
<RowDefinition Height="5*"/> |
|
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
|
|
<Button Text="0,0" Grid.Row="0" Grid.Column="0" BackgroundColor="ForestGreen" FontSize="Large"/> |
|
|
|
|
<Button Text="0,1" Grid.Row="0" Grid.Column="1" BackgroundColor="Orange" FontSize="Large"/> |
|
|
|
|
<Button Text="0,2" Grid.Row="0" Grid.Column="2" BackgroundColor="Salmon" FontSize="Large"/> |
|
|
|
|
<Button Text="1,0" Grid.Row="1" Grid.Column="0" BackgroundColor="Orange" FontSize="Large"/> |
|
|
|
|
<Button Text="1,1" Grid.Row="1" Grid.Column="1" BackgroundColor="Salmon" FontSize="Large"/> |
|
|
|
|
<Button Text="1,2" Grid.Row="1" Grid.Column="2" BackgroundColor="ForestGreen" FontSize="Large"/> |
|
|
|
|
<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" BackgroundColor="DarkGoldenrod"> |
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
|
<ColumnDefinition Width="3*"/> |
|
|
|
|
<ColumnDefinition Width="7*"/> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
|
|
<StackLayout Grid.Row="0" Grid.Column="0" BackgroundColor="DeepSkyBlue"> |
|
|
|
|
<Label Text="0,0-1"/> |
|
|
|
|
<Label Text="0,0-2"/> |
|
|
|
|
</StackLayout> |
|
|
|
|
<StackLayout Grid.Row="0" Grid.Column="1" BackgroundColor="DeepSkyBlue" Orientation="Horizontal"> |
|
|
|
|
<Label Text="0,0-1"/> |
|
|
|
|
<Label Text="0,0-2"/> |
|
|
|
|
</StackLayout> |
|
|
|
|
</Grid> |
|
|
|
|
</Grid> |
|
|
|
|
</ContentPage.Content> |
|
|
|
|
</ContentPage> |