|
|
@ -32,10 +32,11 @@
|
|
|
|
Margin="0">
|
|
|
|
Margin="0">
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
<DropGestureRecognizer DragOver="OnDragOverBag"
|
|
|
|
<DropGestureRecognizer DragOver="OnDragOverBag"
|
|
|
|
DropCommand="{Binding OnDropB, Source={x:Reference root}}"
|
|
|
|
DropCommand="{Binding OnDropB, Source={x:Reference root}}" />
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
<Image Source="bag.png" ToolTipProperties.Text="Pour m'utiliser il faut cliquer sur le boutton swap avant ^^"></Image>
|
|
|
|
<Image Source="bag.png"
|
|
|
|
|
|
|
|
ToolTipProperties.Text="Pour m'utiliser il faut cliquer sur le boutton swap avant ^^">
|
|
|
|
|
|
|
|
</Image>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
@ -80,8 +81,7 @@
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
<Border WidthRequest="70" HeightRequest="70"
|
|
|
|
BackgroundColor="{Binding ColorBC1, Source={x:Reference root}}"
|
|
|
|
BackgroundColor="{Binding ColorBC1, Source={x:Reference root}}"
|
|
|
|
Margin="0"
|
|
|
|
Margin="0">
|
|
|
|
>
|
|
|
|
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
<Border.GestureRecognizers>
|
|
|
|
<DragGestureRecognizer CanDrag="True" DragStarting="OnDragStarting" />
|
|
|
|
<DragGestureRecognizer CanDrag="True" DragStarting="OnDragStarting" />
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
</Border.GestureRecognizers>
|
|
|
@ -154,12 +154,13 @@
|
|
|
|
<ScrollView Grid.Row="1" Grid.Column="1" VerticalOptions="FillAndExpand">
|
|
|
|
<ScrollView Grid.Row="1" Grid.Column="1" VerticalOptions="FillAndExpand">
|
|
|
|
<CollectionView ItemsSource="{Binding Board.ReadCells}"
|
|
|
|
<CollectionView ItemsSource="{Binding Board.ReadCells}"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
VerticalOptions="Center" HorizontalScrollBarVisibility="Never" VerticalScrollBarVisibility="Never"
|
|
|
|
VerticalOptions="Center" HorizontalScrollBarVisibility="Never"
|
|
|
|
>
|
|
|
|
VerticalScrollBarVisibility="Never">
|
|
|
|
|
|
|
|
|
|
|
|
<CollectionView.HeightRequest>
|
|
|
|
<CollectionView.HeightRequest>
|
|
|
|
|
|
|
|
|
|
|
|
<MultiBinding Converter="{StaticResource multiMathExpressionConverter}" ConverterParameter="x0 * x1 +(x0 - 1) * x2 ">
|
|
|
|
<MultiBinding Converter="{StaticResource multiMathExpressionConverter}"
|
|
|
|
|
|
|
|
ConverterParameter="x0 * x1 +(x0 - 1) * x2 ">
|
|
|
|
<Binding Path="Board.Rows" />
|
|
|
|
<Binding Path="Board.Rows" />
|
|
|
|
<Binding Source="{StaticResource CellHeight}" />
|
|
|
|
<Binding Source="{StaticResource CellHeight}" />
|
|
|
|
<Binding Source="{StaticResource VerticalSpacing}" />
|
|
|
|
<Binding Source="{StaticResource VerticalSpacing}" />
|
|
|
@ -170,7 +171,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
<CollectionView.WidthRequest>
|
|
|
|
<CollectionView.WidthRequest>
|
|
|
|
|
|
|
|
|
|
|
|
<MultiBinding Converter="{StaticResource multiMathExpressionConverter}" ConverterParameter="x0 * x1 +(x0 - 1) * x2 ">
|
|
|
|
<MultiBinding Converter="{StaticResource multiMathExpressionConverter}"
|
|
|
|
|
|
|
|
ConverterParameter="x0 * x1 +(x0 - 1) * x2 ">
|
|
|
|
<Binding Path="Board.Columns" />
|
|
|
|
<Binding Path="Board.Columns" />
|
|
|
|
<Binding Source="{StaticResource CellWidth}" />
|
|
|
|
<Binding Source="{StaticResource CellWidth}" />
|
|
|
|
<Binding Source="{StaticResource HorizontalSpacing}" />
|
|
|
|
<Binding Source="{StaticResource HorizontalSpacing}" />
|
|
|
@ -194,7 +196,9 @@
|
|
|
|
DropCommand="{Binding OnDrop, Source={x:Reference root}}"
|
|
|
|
DropCommand="{Binding OnDrop, Source={x:Reference root}}"
|
|
|
|
DropCommandParameter="{Binding .}" />
|
|
|
|
DropCommandParameter="{Binding .}" />
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
</Border.GestureRecognizers>
|
|
|
|
<controls:TileView HorizontalOptions="Center" Shape="{Binding Tile.GetShape}" Color="{Binding Tile.GetColor}"></controls:TileView>
|
|
|
|
<controls:TileView HorizontalOptions="Center" Shape="{Binding Tile.GetShape}"
|
|
|
|
|
|
|
|
Color="{Binding Tile.GetColor}">
|
|
|
|
|
|
|
|
</controls:TileView>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
</DataTemplate>
|
|
|
|
</DataTemplate>
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
|
</CollectionView.ItemTemplate>
|
|
|
@ -204,6 +208,5 @@
|
|
|
|
<controls:Scoreboard InputTransparent="True" HorizontalOptions="End" Grid.Row="1" Grid.Column="1"></controls:Scoreboard>
|
|
|
|
<controls:Scoreboard InputTransparent="True" HorizontalOptions="End" Grid.Row="1" Grid.Column="1"></controls:Scoreboard>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</ContentPage>
|
|
|
|
</ContentPage>
|