public CustomObjectElement(string text, UIElement element) : base(text.Length, element) { this.Text = text; }