public static UIFont ToNative(this XPlatFont @this) { Func <float> getSize = () => @this == null || @this.FontSize == null || [email protected] ? (float)UIFont.SystemFontSize : @this.FontSize.Value; Func <UIFont> getFont = () => @this == null || @this.FontName == null?UIFont.SystemFontOfSize(getSize()) : GetFont(@this.FontName, getSize()); return(getFont()); }
public static void ApplyFont(this UIStringAttributes @this, XPlatFont font) { if (@this == null || font == null) { return; } @this.Font = font.ToNative(); }
public static void ApplyFont(this UIButton @this, XPlatFont font) { if (@this == null || font == null) { return; } @this.Font = font.ToNative(); }