|
|
@ -7,9 +7,9 @@
|
|
|
|
x:Name="root">
|
|
|
|
x:Name="root">
|
|
|
|
<ScrollView>
|
|
|
|
<ScrollView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding GetCellsInBoard}"
|
|
|
|
<CollectionView ItemsSource="{Binding GetCellsInBoard}"
|
|
|
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
VerticalOptions="Center">
|
|
|
|
VerticalOptions="Center">
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
@ -18,14 +18,43 @@
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
|
|
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
|
|
|
Margin="0">
|
|
|
|
|
|
|
|
<Label Text="{Binding Tile}"></Label>
|
|
|
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
|
|
|
<DropGestureRecognizer />
|
|
|
|
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
|
|
|
</CollectionView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding PlayerCells1, Source={x:Reference root}}"
|
|
|
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
|
|
|
VerticalOptions="Start" >
|
|
|
|
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
|
|
|
|
|
<GridItemsLayout Orientation="Horizontal"/>
|
|
|
|
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
Margin="0">
|
|
|
|
Margin="0">
|
|
|
|
</Border>
|
|
|
|
<Label Text="{Binding}">
|
|
|
|
</DataTemplate>
|
|
|
|
<Label.GestureRecognizers>
|
|
|
|
|
|
|
|
<DragGestureRecognizer />
|
|
|
|
|
|
|
|
</Label.GestureRecognizers>
|
|
|
|
|
|
|
|
</Label>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
</CollectionView>
|
|
|
|
</CollectionView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|