|
|
|
@ -10,43 +10,39 @@
|
|
|
|
|
<StackLayout>
|
|
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding GetCellsInBoard}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
VerticalOptions="Center">
|
|
|
|
|
<CollectionView.ItemsLayout>
|
|
|
|
|
<GridItemsLayout Orientation="Vertical"
|
|
|
|
|
Span="{Binding Board.Columns}"/>
|
|
|
|
|
</CollectionView.ItemsLayout>
|
|
|
|
|
<CollectionView.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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">
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
Margin="0">
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
|
<DropGestureRecognizer DragOver="OnDragOver"
|
|
|
|
|
DropCommand="{Binding OnDrop, Source={x:Reference root}}"
|
|
|
|
|
DropCommandParameter="{Binding .}" />
|
|
|
|
|
|
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
|
<Label Text="{Binding GetTile}"></Label>
|
|
|
|
|
<Label Text="{Binding GetTile}" />
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
|
|
|
|
|
<CollectionView ItemsSource="{Binding PlayerCells1, Source={x:Reference root}}"
|
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
VerticalOptions="Start" >
|
|
|
|
|
<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"
|
|
|
|
|
Margin="0">
|
|
|
|
|
BackgroundColor="WhiteSmoke"
|
|
|
|
|
Margin="0">
|
|
|
|
|
<Label Text="{Binding}">
|
|
|
|
|
<Label.GestureRecognizers>
|
|
|
|
|
<DragGestureRecognizer />
|
|
|
|
@ -54,11 +50,10 @@
|
|
|
|
|
</Label>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
|
</CollectionView>
|
|
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
</ContentPage>
|
|
|
|
|
</ContentPage>
|
|
|
|
|