|
|
@ -38,7 +38,7 @@ public partial class TileCircle : ContentView
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly BindableProperty ColorProperty =
|
|
|
|
public static readonly BindableProperty ColorProperty =
|
|
|
|
BindableProperty.Create("Color", typeof(string), typeof(TileCircle), "");
|
|
|
|
BindableProperty.Create(nameof(Color), typeof(string), typeof(TileCircle), "", propertyChanged: OnColorChanged);
|
|
|
|
|
|
|
|
|
|
|
|
public string Color
|
|
|
|
public string Color
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -46,6 +46,13 @@ public partial class TileCircle : ContentView
|
|
|
|
set => SetValue(ColorProperty, value);
|
|
|
|
set => SetValue(ColorProperty, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void OnColorChanged(BindableObject bindable, object oldValue, object newValue)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var bin = (TileCircle)bindable;
|
|
|
|
|
|
|
|
bin.OnPropertyChanged(nameof(Color));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly BindableProperty ShapeProperty =
|
|
|
|
public static readonly BindableProperty ShapeProperty =
|
|
|
|
BindableProperty.Create("Shape", typeof(string), typeof(TileCircle), "");
|
|
|
|
BindableProperty.Create("Shape", typeof(string), typeof(TileCircle), "");
|
|
|
|
|
|
|
|
|
|
|
|