private void SetFont(TxButton view) { if (view.Font != Font.Default) { Control.Typeface = view.Font.ToExtendedTypeface(Context); } }
private void SetFont(TxButton view) { if (view.Font != Font.Default) { view.FontFamily = string.Format(@"\Assets\Fonts\{0}.ttf#{1}", view.FontFamily, view.FontFamily); } }
private void SetFont(TxButton view) { UIFont uiFont; if (view.Font != Font.Default && (uiFont = view.Font.ToUIFont()) != null) { Control.Font = uiFont; } else if (view.Font == Font.Default) { Control.Font = UIFont.SystemFontOfSize(17f); } }