Exemple #1
0
        public TextComponent(TextComponent linkedTo) : this(null, linkedTo.Context, "")
        {
            Layout.CopyStyle(linkedTo.Layout);
            ComputedStyle.CopyStyle(linkedTo.ComputedStyle);
            Style          = linkedTo.Style;
            Style.changed += StyleChanged;

            SetParent(linkedTo.Parent, linkedTo, true);

            ApplyLayoutStyles();
            ApplyStyles();

            ScheduleLayout();
        }