Exemple #1
0
 public static void MSLabel(this UILabel self, MSFontStyle style = MSFontStyle.L, UIColor textColor = null)
 {
     if (textColor == null)
     {
         textColor = UIColorMS.NeutralPrimary;
     }
     self.Font      = UIFontMS.FromStyle(style, MSFontConstants.PreferredFontWeight(style));
     self.TextColor = textColor;
 }
 void SetupInitialsLabel()
 {
     initialsLabel = new UILabel(Frame)
     {
         TextAlignment = UITextAlignment.Center,
         TranslatesAutoresizingMaskIntoConstraints = false,
         Font          = UIFontMS.FromStyle(MSFontStyle.XL, MSFontWeight.Regular),
         TextColor     = UIColorMS.NeutralWhite,
         ClipsToBounds = true
     };
     AddSubview(initialsLabel);
     SetupConstraints();
 }