In Xamarin.Forms, how to set FontAttributes inside XAML both Bold and Italic ?
FontAttributes
XAML
Example:
<Style TargetType="Label"> <Setter Property="FontAttributes" Value="Bold" /> <Setter Property="FontAttributes" Value="Italic" /> </Style>
<Style TargetType="Label"> <Setter Property="FontAttributes" Value="Bold, Italic" /> </Style>
FontAttributes is a flag, so you can pass multiple values.
Just use commas to separate them in the value field.
<Style TargetType="Label"> <Setter Property="FontAttributes" Value="Bold, Italic"/> </Style>
Be sure to check out http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/fonts/