Ejemplo n.º 1
0
        public SidebarPanel()
        {
            AutoSize = true;
            AutoSizeMode = AutoSizeMode.GrowAndShrink;

            _hidden = false;
            _header = new SidebarHeader {Text = "This is a test", Expanded = !_hidden, Dock = DockStyle.Top};
            _header.Click += HeaderClicked;

            _panel = new Panel{ Dock = DockStyle.Top, AutoSize = true};
            Controls.Add(_panel);
            Controls.Add(_header);
        }
Ejemplo n.º 2
0
        public SidebarPanel()
        {
            AutoSize     = true;
            AutoSizeMode = AutoSizeMode.GrowAndShrink;

            _hidden = false;
            _header = new SidebarHeader {
                Text = "This is a test", Expanded = !_hidden, Dock = DockStyle.Top
            };
            _header.Click += HeaderClicked;

            _panel = new Panel {
                Dock = DockStyle.Top, AutoSize = true
            };
            Controls.Add(_panel);
            Controls.Add(_header);
        }