A panel that can collapse.
Inheritance: ViewBase
        public void ClassInitialize()
        {
            // Setup initial conditions.
            panel = new CollapsePanel();
            TestHarness.AddControl(panel);

            // Initialize panel settings.
            panel.Padding.Change(10);

            // Wire up events.
            LogEvents(panel);

            // Setup test styles.
            panel.SetSize(200, 350);
            panel.Background = Color.Red(0.1);
            panel.Content.CSS(Css.Background, Color.Red(0.4));
            panel.Content.Append("123456789 abcdefg");
        }
 public static void LogEvents(CollapsePanel panel)
 {
     panel.Inflating += delegate { Log.Event("Inflating"); };
     panel.Inflated += delegate { Log.Event("Inflated"); };
     panel.Collapsing += delegate { Log.Event("Collapsing"); };
     panel.Collapsed += delegate { Log.Event("Collapsed"); };
 }