locked
Problem with tag Frame on Labels RRS feed

  • Question

  • User376311 posted

    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 ?

    Monday, December 10, 2018 11:15 AM

Answers

  • User369978 posted

    I have answered this on stackoverflow.

    Solution : Set background on Frame not on Label .

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, December 12, 2018 3:02 AM