|
|
@ -7,6 +7,7 @@
|
|
|
|
x:Name="root">
|
|
|
|
x:Name="root">
|
|
|
|
<ContentView.Resources>
|
|
|
|
<ContentView.Resources>
|
|
|
|
<conv:Int2ColorConverter x:Key="int2ColorConverter"/>
|
|
|
|
<conv:Int2ColorConverter x:Key="int2ColorConverter"/>
|
|
|
|
|
|
|
|
<conv:RoundToVisibilityConverter x:Key="roundToVisibilityConverter"/>
|
|
|
|
</ContentView.Resources>
|
|
|
|
</ContentView.Resources>
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Label Text="{Binding Shape, Source={x:Reference root}}"></Label>
|
|
|
|
<Label Text="{Binding Shape, Source={x:Reference root}}"></Label>
|
|
|
@ -20,9 +21,11 @@
|
|
|
|
BackgroundColor="Transparent"/>
|
|
|
|
BackgroundColor="Transparent"/>
|
|
|
|
<Ellipse HeightRequest="50"
|
|
|
|
<Ellipse HeightRequest="50"
|
|
|
|
WidthRequest="50"
|
|
|
|
WidthRequest="50"
|
|
|
|
BackgroundColor="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"
|
|
|
|
Fill="{Binding Color, Source={x:Reference root}, Converter={StaticResource int2ColorConverter}}"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
HorizontalOptions="Center"/>
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
|
|
|
|
IsVisible="{Binding Shape, Source={x:Reference root}, Converter={StaticResource roundToVisibilityConverter}}" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</ContentView>
|
|
|
|
</ContentView>
|