示例#1
0
        public CardLogo(ImageSetting setting)
        {
            Logo = new Image();

            Logo.SetValue(Grid.RowProperty, setting.Row);
            Logo.SetValue(Grid.ColumnProperty, setting.Column);
            Logo.SetValue(Grid.RowSpanProperty, setting.RowSpan);
            Logo.SetValue(Grid.ColumnSpanProperty, setting.ColumnSpan);

            Logo.Aspect = setting.Aspect;
        }
示例#2
0
        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;
        }