good start
continuous-integration/drone/push Build is failing Details

test_old_branch
Jérémy Mouyon 11 months ago
parent eacb60319f
commit 3f09e8e15f

@ -20,10 +20,9 @@
BackgroundColor="Transparent"/> BackgroundColor="Transparent"/>
<Ellipse HeightRequest="50" <Ellipse HeightRequest="50"
WidthRequest="50" WidthRequest="50"
BackgroundColor="{Binding ColorPush, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}" BackgroundColor="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"
VerticalOptions="Center" VerticalOptions="Center"
HorizontalOptions="Center"/> HorizontalOptions="Center"/>
<Label Text="{Binding ColorPush, Source={x:Reference root}}"></Label>
</Grid> </Grid>
</ContentView> </ContentView>

@ -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), "");

Loading…
Cancel
Save