I would like to make underlined label text in Xamarin.Forms. I could not find a suitable solution for this. One thing I discovered is that there is no underline for text in Xamarin, so we could add BoxViewfor a line like this:
<StackLayout Grid.Row="0" Padding="0" VerticalOptions="Center">
<Label Text="Terms and Conditions" />
<BoxView BackgroundColor="White" HeightRequest="1" Margin="0,-8,0,0" />
</StackLayout>
But this is also not a suitable solution, since it draws a line for everything StackView. I would like to emphasize only parts of the text, such as the word "Terms" in the code above.
source
share