|
|
|
@ -6,19 +6,21 @@
|
|
|
|
|
x:Name="root">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="150" />
|
|
|
|
|
<RowDefinition Height="4*" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="10*" />
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
</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>
|
|
|
|
|
<Label Text="{Binding bag.TilesBag.Count}"></Label>
|
|
|
|
|
|
|
|
|
|
<Button HorizontalOptions="End" Grid.Row="2" Grid.Column="1" Text="Skip / End Turn" WidthRequest="200" HeightRequest="10" FontSize="20" Margin="20" Clicked="OnButtonSkipClicked"></Button>
|
|
|
|
|
<Button HorizontalOptions="Start" Grid.Row="2" Grid.Column="1" Text="Settings" WidthRequest="200" HeightRequest="10" FontSize="20" Margin="20" ></Button>
|
|
|
|
|
|
|
|
|
|
<CollectionView Grid.Row="0" Grid.Column="1" ItemsSource="{Binding PlayerList[0].Tiles}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
@ -30,12 +32,13 @@
|
|
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
Margin="0">
|
|
|
|
|
BackgroundColor="{Binding ColorBC1, Source={x:Reference root}}"
|
|
|
|
|
Margin="0"
|
|
|
|
|
>
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
<DragGestureRecognizer CanDrag="True" DragStarting="OnDragStarting"/>
|
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
|
<controls:TileView Shape="{Binding GetShape}" Color="{Binding GetColor}"></controls:TileView>
|
|
|
|
|
<controls:TileView Shape="{Binding GetShape}" Color="{Binding GetColor}" InfoClicked="OnTileClickedP1"></controls:TileView>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
@ -50,7 +53,7 @@
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
BackgroundColor="{Binding ColorBC3, Source={x:Reference root}}"
|
|
|
|
|
Margin="0">
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
<DragGestureRecognizer CanDrag="True" DragStarting="OnDragStarting"/>
|
|
|
|
@ -70,7 +73,7 @@
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
BackgroundColor="{Binding ColorBC4, Source={x:Reference root}}"
|
|
|
|
|
Margin="0">
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
<DragGestureRecognizer CanDrag="True" DragStarting="OnDragStarting"/>
|
|
|
|
@ -90,7 +93,7 @@
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
BackgroundColor="{Binding ColorBC2, Source={x:Reference root}}"
|
|
|
|
|
Margin="0">
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
<DragGestureRecognizer CanDrag="True" DragStarting="OnDragStarting"/>
|
|
|
|
@ -111,15 +114,15 @@
|
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
<Border WidthRequest="80" HeightRequest="80"
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
Margin="0">
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
Margin="0" >
|
|
|
|
|
<Border.GestureRecognizers >
|
|
|
|
|
<DropGestureRecognizer DragOver="OnDragOver"
|
|
|
|
|
DropCommand="{Binding OnDrop, Source={x:Reference root}}"
|
|
|
|
|
DropCommandParameter="{Binding .}" />
|
|
|
|
|
DropCommandParameter="{Binding .}"/>
|
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
|
<controls:TileView Shape="{Binding Tile.GetShape}" Color="{Binding Tile.GetColor}"></controls:TileView>
|
|
|
|
|
<controls:TileView HorizontalOptions="Start" Shape="{Binding Tile.GetShape}" Color="{Binding Tile.GetColor}"></controls:TileView>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|