Problem with tag Frame on Labels

MatthiewMatthiew Member ✭✭
edited December 2018 in Xamarin.iOS

Hi,
I'm using the tag Frame to add borders on my Labels but if I use rounded borders the label stay unrounded and I obtain this result :

The code :

<Label  FontSize="Small" FontAttributes="Bold" HorizontalOptions="Center" VerticalOptions="End" Text="Parameter Legends" />
<Frame BorderColor="Black" Padding="0,0,0,0" CornerRadius="10">
    <Label FontSize="Small" BackgroundColor="Yellow" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" />
</Frame>
<Frame BorderColor="Black" Padding="0,0,0,0" CornerRadius="10">
    <Label FontSize="Small" BackgroundColor="LightGreen" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" />
</Frame>
<Frame BorderColor="Black" Padding="0,0,0,0" CornerRadius="10">
    <Label FontSize="Small" BackgroundColor="Red" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" />
</Frame>
<Frame BorderColor="Black" Padding="0,0,0,0" CornerRadius="10">
    <Label  FontSize="Small" BackgroundColor="Cyan" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" />
</Frame>

Is there any solution ?

Best Answer

Answers

Sign In or Register to comment.