diff --git a/Qwirkle/QwirkleViews/Pages/Gameboard.xaml b/Qwirkle/QwirkleViews/Pages/Gameboard.xaml
index d91fa2c..41c00ae 100644
--- a/Qwirkle/QwirkleViews/Pages/Gameboard.xaml
+++ b/Qwirkle/QwirkleViews/Pages/Gameboard.xaml
@@ -26,7 +26,7 @@
DropCommand="{Binding OnDrop, Source={x:Reference root}}"
DropCommandParameter="{Binding .}" />
-
+
diff --git a/Qwirkle/QwirkleViews/Views/TileCircle.xaml b/Qwirkle/QwirkleViews/Views/TileCircle.xaml
index d9bb719..1c1e0b2 100644
--- a/Qwirkle/QwirkleViews/Views/TileCircle.xaml
+++ b/Qwirkle/QwirkleViews/Views/TileCircle.xaml
@@ -2,18 +2,20 @@
+ x:Class="Qwirkle.Views.TileCircle"
+ x:Name="root">
-
+
-
+
diff --git a/Qwirkle/QwirkleViews/Views/TileCircle.xaml.cs b/Qwirkle/QwirkleViews/Views/TileCircle.xaml.cs
index ced6aa4..832fb59 100644
--- a/Qwirkle/QwirkleViews/Views/TileCircle.xaml.cs
+++ b/Qwirkle/QwirkleViews/Views/TileCircle.xaml.cs
@@ -3,13 +3,46 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using Microsoft.Maui.Controls;
+using QwirkleClassLibrary.Games;
+using QwirkleClassLibrary.Players;
+using QwirkleClassLibrary.Tiles;
+using QwirkleClassLibrary.Events;
+using QwirkleClassLibrary.Boards;
namespace Qwirkle.Views;
public partial class TileCircle : ContentView
{
+
+ public static readonly BindableProperty TileInfoProperty = BindableProperty.Create(nameof(TileInfo), typeof(Tile), typeof(TileCircle), default(Tile));
+
+ public Tile TileInfo
+ {
+ get => (Tile)GetValue(TileInfoProperty);
+ set => SetValue(TileInfoProperty, value);
+ }
public TileCircle()
{
InitializeComponent();
+ ((App)Application.Current!).Game.Board.PropertyChanged += Board_PropertyChanged;
+ }
+
+ private void Board_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e)
+ {
+ if (TileInfo == null)
+ {
+ return;
+ }
+ Shape = TileInfo.GetShape.ToString();
+ if (Shape != "Round")
+ {
+ return;
+ }
+ Color = TileInfo.GetColor.ToString();
+ BC = "Grey300";
}
+ public string BC { get; set; } = "Transparent";
+ public string Color { get; set; } = "Transparent";
+ public string Shape { get; set; } = "None";
}
\ No newline at end of file