/// <summary> /// Constructs a label and a textmapped basend on a type's member /// </summary> /// <param name="type">Type containing member with data to be printed</param> /// <param name="member">Member containing data to be printed</param> public LabelTextMapped(Type type, string member) { textMapped = new TextMapped(type, member); staticLabel = new StaticLabel(); staticLabel.Text = member; border = new Border(this); staticLabel.Alignment = ContentAlignment.TopCenter; textMapped.Alignment = ContentAlignment.BottomCenter; textMapped.Brush = Brushes.Blue; }
public LabelTextMapped() { staticLabel = new StaticLabel(); textMapped = new TextMapped(); }