|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="150" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
@ -16,7 +16,9 @@
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button HorizontalOptions="End" Grid.Row="0" Grid.Column="1" Text="Settings" WidthRequest="200" HeightRequest="10" FontSize="20" Margin="20"></Button>
|
|
|
|
|
<Button HorizontalOptions="Start" Grid.Row="0" Grid.Column="1" Text="Skip turn" WidthRequest="200" HeightRequest="10" FontSize="20" Margin="20"></Button>
|
|
|
|
|
|
|
|
|
|
<CollectionView Grid.Row="0" Grid.Column="1" ItemsSource="{Binding PlayerList[0].Tiles}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
@ -59,31 +61,6 @@
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
|
|
|
|
|
<ScrollView Grid.Row="1" Grid.Column="1" VerticalOptions="StartAndExpand">
|
|
|
|
|
<CollectionView ItemsSource="{Binding Board.ReadCells}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
VerticalOptions="Center">
|
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
|
|
<GridItemsLayout Orientation="Vertical"
|
|
|
|
|
Span="{Binding Board.Columns}"/>
|
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
Margin="0">
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
<DropGestureRecognizer DragOver="OnDragOver"
|
|
|
|
|
DropCommand="{Binding OnDrop, Source={x:Reference root}}"
|
|
|
|
|
DropCommandParameter="{Binding .}" />
|
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
|
<controls:TileView Shape="{Binding Tile.GetShape}" Color="{Binding Tile.GetColor}"></controls:TileView>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
<CollectionView Grid.Row="1" Grid.Column="2" ItemsSource="{Binding PlayerList[3].Tiles}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
VerticalOptions="Center" >
|
|
|
|
@ -106,7 +83,7 @@
|
|
|
|
|
|
|
|
|
|
<CollectionView Grid.Row="2" Grid.Column="1" ItemsSource="{Binding PlayerList[1].Tiles}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
VerticalOptions="Center" >
|
|
|
|
|
VerticalOptions="Start" >
|
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
|
|
<GridItemsLayout Orientation="Horizontal"/>
|
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
@ -123,5 +100,33 @@
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
|
|
|
|
|
<ScrollView Grid.Row="1" Grid.Column="1" VerticalOptions="FillAndExpand">
|
|
|
|
|
<CollectionView ItemsSource="{Binding Board.ReadCells}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
VerticalOptions="Center">
|
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
|
|
<GridItemsLayout Orientation="Vertical"
|
|
|
|
|
Span="{Binding Board.Columns}"/>
|
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
Margin="0">
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
<DropGestureRecognizer DragOver="OnDragOver"
|
|
|
|
|
DropCommand="{Binding OnDrop, Source={x:Reference root}}"
|
|
|
|
|
DropCommandParameter="{Binding .}" />
|
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
|
<controls:TileView Shape="{Binding Tile.GetShape}" Color="{Binding Tile.GetColor}"></controls:TileView>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</ContentPage>
|
|
|
|
|