FontFamily defined in XAML per platform

后端 未结 1 1916
借酒劲吻你
借酒劲吻你 2021-01-14 16:02

In my Xamarin Forms project I would like to define the Form family onect per platform and the use that in the application.

So far I\'ve hardcoded the FontFamily per

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-14 16:26

    Define a style in the App.xaml and then reference that style throughout the app. That way you can set the font once in the App.xaml using the OnPlatform tag and never have to worry about OnPlatform in all your other XAML files.

    
        
            
                
                
            
        
    
    

    And then:

    0 讨论(0)
提交回复
热议问题