Ejemplo n.º 1
0
 public static void ApplyFont(this UIButton @this, string font, float?size = null)
 {
     if (@this == null || font == null)
     {
         return;
     }
     @this.ApplyFont(new XPlatFont(font, size));
 }
Ejemplo n.º 2
0
        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);
        }