Split Panel Headers visible when collapsed

Posted by: gharshman on 14 February 2018, 2:38 pm EST

    • Post Options:
    • Link

    Posted 14 February 2018, 2:38 pm EST

    Is there a way to make the headers on the split panels in the split container visible when the panel is collapsed? Three screen shots are attached: what is looks like expanded, collapsed and finally what it would ideally look like.

    Thank you

  • Posted 14 February 2018, 2:40 pm EST

    Collapsed

    Ideally

  • Posted 15 February 2018, 6:37 am EST

    Hello,

    Though, there is no direct way to do that, the following workaround using MinHeight, Visible properties and VisibleChanged event, can be used to meet your requirement:

    Boolean flag = false;
            private void c1SplitterPanel3_VisibleChanged(object sender, EventArgs e)
            {
                if(c1SplitterPanel3.Visible== false && !flag )
                {
                    flag = true;
                    ShowHeader();
                }
                if (c1SplitterPanel3.Visible == false && flag)
                {
                    flag = false;
                    Default();
                }
            }
            public void ShowHeader()
            {
                c1SplitterPanel3.Visible = !c1SplitterPanel3.Visible;
                c1SplitterPanel3.Height = c1SplitterPanel3.MinHeight = 25;
            }
            public void Default()
            {
                c1SplitterPanel3.Visible = !c1SplitterPanel3.Visible;
                c1SplitterPanel3.Height = 90;
            }
    

    Thanks,

    Ruchir Agarwal

    C1Split_Header.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels