public static void ApplyFont(this UIButton @this, string font, float?size = null) { if (@this == null || font == null) { return; } @this.ApplyFont(new XPlatFont(font, size)); }
public static void ApplyStyle(this UIButton @this, XPlatLabelStyle style) { if (@this == null || style == null) { return; } @this.ApplyFont(style.Font); @this.ApplyTextColor(style.Color); @this.ApplyTextAlign(style.TextAlign); }