Example #1
0
        public UIElement(UIManager manager, IUIElement parent)
        {
            children    = new List <IUIElement>();
            this.parent = parent ?? manager;
            root        = manager;

            parent.AddChild(this);
        }
Example #2
0
        public UIElement(UIManager manager)
        {
            children = new List <IUIElement>();
            root     = manager;
            parent   = manager;

            parent.AddChild(this);
        }