Example #1
0
 protected UIElement(UIElement parent = null)
 {
     Padding = new Padding();
     Padding.Left = Padding.Right = Padding.Top = Padding.Bottom = 3;
     Children = new LinkedList<UIElement>();
     Style = GetType().Name;
     Parent = parent;
     Text = "";
 }
Example #2
0
 private void RemoveChild(UIElement element)
 {
     Children.Remove(element);
     Invalidate();
 }
Example #3
0
 private void AddChild(UIElement element)
 {
     Children.AddLast(element);
     Invalidate();
 }