Я пытаюсь построить круг вокруг метки с текстом.
<StackLayout Grid.Row="0" BackgroundColor="White" Padding="0,40,0,0">
<Label Text="Your total score is" FontSize="30" HorizontalTextAlignment="Center" Style="{DynamicResource FontBold-Bold}"/>
<Frame BackgroundColor="White" CornerRadius="30" OutlineColor="#03A9F4" HeightRequest="20" WidthRequest="20" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Margin="0" Padding="0">
<Label Text="57%" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
</Frame>
</StackLayout>
К сожалению, рамка не получается в виде круга. Независимо от того, насколько я увеличил свойство CornerRadius
, углы остаются неизменными.
Обратите внимание, что Frame
выглядит как круг на Android.