public WidgetElement(WidgetElement parent) { Parent = parent; Widget = parent?.Widget ?? parent as Widget ?? this as Widget; if (Widget != null) { ElementId = Widget.NextElementId(); } else { throw new Exception("Widget Element does not have a parent widget."); } }
public void AddElement(WidgetElement element) { Elements.AddLast(element); }
public WidgetElementGroup(WidgetElement parent, string title) : base(parent) { Title = title; Elements = new LinkedList <WidgetElement>(); }
public TextElement(WidgetElement parent, string label, string text = "") : base(parent) { Label = label; Text = text; }