Beispiel #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 = "";
 }
Beispiel #2
0
 private void RemoveChild(UIElement element)
 {
     Children.Remove(element);
     Invalidate();
 }
Beispiel #3
0
 private void AddChild(UIElement element)
 {
     Children.AddLast(element);
     Invalidate();
 }