Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to collapse and expand the Ribbon Menu? #51

Open
jasonzhang-gd opened this issue Oct 3, 2019 · 3 comments
Open

How to collapse and expand the Ribbon Menu? #51

jasonzhang-gd opened this issue Oct 3, 2019 · 3 comments

Comments

@jasonzhang-gd
Copy link

How to collapse and expand the Ribbon Menu?
like Outlook, we can collapse and expand the menu.

@jasonzhang-gd
Copy link
Author

ex
expend

@jasonzhang-gd
Copy link
Author

ex

@adriancs2
Copy link
Contributor

adriancs2 commented Oct 3, 2019

This function is not available yet, but here is a workaround:
First, initialize the ribbon with a height:

ribbon1.Height = 150;

Collapse:

foreach (RibbonTab t in ribbon1.Tabs)
{
    foreach (RibbonPanel p in t.Panels)
    {
        p.Visible = false;
    }
}
ribbon1.Height = 50;

Expand:

foreach (RibbonTab t in ribbon1.Tabs)
{
    foreach (RibbonPanel p in t.Panels)
    {
        p.Visible = true;
    }
}
ribbon1.Height = 150;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants