2015-07-14 8 views

risposta

10
<Style TargetType="Label"> 
    <Setter Property="FontAttributes" Value="Bold, Italic" /> 
</Style> 

FontAttributes è una bandiera, in modo da poter passare più valori.

1

Basta tenere Utilizzare le virgole per separarli nel campo del valore.

<Style TargetType="Label"> 
    <Setter Property="FontAttributes" Value="Bold, Italic"/> 
    </Style> 

Assicurarsi di rivedere http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/fonts/

+0

Grazie Stephane. Qualche idea su questa domanda: http://stackoverflow.com/questions/31406185/how-to-make-a-behaviors-collection-a-resource-in-xaml –