Beispiel #1
0
        private void Setup()
        {
            foreach (var child in Children.ToArray())
            {
                if (child is Label && !(child is Button))
                {
                    RemoveChild(child, true);
                }
            }
            Container.SizeToChildren(true, true);
            int min = Container.Width + PanelMargin.Width + (50);

            Height      = Container.Height + (Skin.DefaultFont.LineHeight * 2);
            MinimumSize = new Size(Math.Max(min, MinimumSize.Width), MinimumSize.Height);
            SetupText(Text);
            m_Panel.SizeToChildren(true, true);
            SizeToChildren(true, true);
            Invalidate();
        }