public NameCard(LabelSetting nameSetting, LabelSetting titleSetting, LabelSetting websiteSetting, LabelSetting phoneNumberSetting, LabelSetting emailSetting, LabelSetting addressSetting, ImageSetting logoSetting, string logo, string background) { Name = new CardLabel(nameSetting); Title = new CardLabel(titleSetting); Website = new CardLabel(websiteSetting); PhoneNumber = new CardLabel(phoneNumberSetting); Email = new CardLabel(emailSetting); Address = new CardLabel(addressSetting); Background = background; Logo = new CardLogo(logoSetting); Logo.Logo.Source = logo; }
public CardLabel(LabelSetting setting) { Label = new Label(); Label.SetValue(Grid.RowProperty, setting.Row); Label.SetValue(Grid.ColumnProperty, setting.Column); Label.SetValue(Grid.RowSpanProperty, setting.RowSpan); Label.SetValue(Grid.ColumnSpanProperty, setting.ColumnSpan); Label.HorizontalTextAlignment = setting.Alignment; double size = Device.GetNamedSize(setting.FontSize, typeof(Label)); Label.FontSize = size; Label.TextColor = setting.FontColor; }