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

                this.AddSubviews(_icon, _label);
            });
        }
Exemplo n.º 6
0
 public static void SetFontAndColor(this UILabel label, FontWithColor fontWithColor)
 {
     label.Font      = fontWithColor.Font;
     label.TextColor = fontWithColor.Color;
 }
Exemplo n.º 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);
 }
Exemplo n.º 8
0
 public void SetFontAndColor(FontWithColor font)
 {
     this._label.SetFontAndColor(font);
 }