Beispiel #1
0
 public AquamonixLabel(FontWithColor fontWithColor) : this()
 {
     ExceptionUtility.Try(() =>
     {
         this.SetFontAndColor(fontWithColor);
     });
 }
 public void SetLine2Font(FontWithColor font)
 {
     ExceptionUtility.Try(() =>
     {
         this._secondLineLabel.SetFontAndColor(font);
         this._secondLineLabel.SizeToFit();
     });
 }
Beispiel #3
0
 public void SetFontAndColor(FontWithColor fontWithColor)
 {
     ExceptionUtility.Try(() =>
     {
         this.Font      = fontWithColor.Font;
         this.TextColor = fontWithColor.Color;
     });
 }
 public void SetLine1Font(FontWithColor font)
 {
     ExceptionUtility.Try(() =>
     {
         this._numberLabel.SetFontAndColor(font);
         this._firstLineLabel.SetFontAndColor(font);
         this._firstLineLabel.SizeToFit();
     });
 }
Beispiel #5
0
        public IconWithLabel(FontWithColor font) : base()
        {
            ExceptionUtility.Try(() =>
            {
                this._label.SetFontAndColor(font);

                this.AddSubviews(_icon, _label);
            });
        }
Beispiel #6
0
 public static void SetFontAndColor(this UILabel label, FontWithColor fontWithColor)
 {
     label.Font      = fontWithColor.Font;
     label.TextColor = fontWithColor.Color;
 }
Beispiel #7
0
 public static void SetFontAndColor(this UIButton button, FontWithColor fontWithColor)
 {
     button.Font = fontWithColor.Font;
     button.SetTitleColor(fontWithColor.Color, UIControlState.Normal);
     button.SetTitleColor(fontWithColor.Color, UIControlState.Disabled);
 }
Beispiel #8
0
 public void SetFontAndColor(FontWithColor font)
 {
     this._label.SetFontAndColor(font);
 }