Global font Family

JensBorrisholt.5505JensBorrisholt.5505 USMember
edited July 2016 in Xamarin.Forms

Hi

I'm porting the styles in App.xaml in a Windows App to a Xamarin Forms App
I my Windows App I've defined a global Font Family like this
<FontFamily x:Key="BMFontFamily">Tahoma</FontFamily>

and use it like this:

            <Stylex:Key="TahomaBase_TextBlock" TargetType="TextBlock">
                <Setter Property="FontFamily" Value="{StaticResource BMFontFamily}" />
            </Style>

How do I do that in Xamarin forms?

This is by XAF code by far:

          <Style x:Key="TahomaBase_Label" TargetType="Label" BaseResourceKey="SubtitleStyle">
            <Setter Property="FontFamily" Value="Tahoma" />
          </Style>

I've hardcoded the FontFamily but I want do use a centralized one, like I do in Windows.

Sign In or Register to comment.