using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Media; using System.Windows.Controls; namespace Demos.Warden.TagTextEditing { public abstract class TagBaseElement : System.Windows.Documents.Run { public string TagTitle { get; set; } public abstract bool IsInitializedProperly(); public TagBaseElement() { this.setElementDefaultAppearance(); } public abstract string getActualValue(); public void setElementDefaultAppearance() { this.Background = new SolidColorBrush(Colors.Cyan); this.Text = this.TagTitle; } } }