Use custom fonts in xamarin forms

前端 未结 2 368
别那么骄傲
别那么骄傲 2021-01-25 08:08

I want to use custom font in xaml file in xamarinforms on the portable folder(not iOS and android) that get an output for all of this platform.

2条回答
  •  天涯浪人
    2021-01-25 08:35

    1. Add fonts into your platforms as explained here.
    2. Create a font style that reflects on your platform like:

          
      
    3. use it with any of below options:

      • Direct using :

      • Using With anonymous style (that affects all labels in your app):

        
        
      • Use with named Style:

        
        
        

提交回复
热议问题