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 ?
Answers
I have answered this on stackoverflow.
Solution : Set background on Frame not on Label .