Пример #1
0
        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());
        }
Пример #2
0
 public static void ApplyFont(this UIStringAttributes @this, XPlatFont font)
 {
     if (@this == null || font == null)
     {
         return;
     }
     @this.Font = font.ToNative();
 }
Пример #3
0
 public static void ApplyFont(this UIButton @this, XPlatFont font)
 {
     if (@this == null || font == null)
     {
         return;
     }
     @this.Font = font.ToNative();
 }