示例#1
0
 void Toolbar_ChildViewAdded(object sender, ChildViewAddedEventArgs e)
 {
     if (e.Child is TextView textView)
     {
         textView.Typeface = Typeface.CreateFromAsset(Context.Assets, CustomNavigationPage.GetFontFamily(CurrentPage).FontNameToFontFile());
         textView.SetTextSize(ComplexUnitType.Sp, (float)CustomNavigationPage.GetFontSize(CurrentPage));
     }
 }