Collapsed TabItem

May 9, 2012 at 8:50 PM

Is it possible to collapse the menue of an Tabitem?
I just want to collapse it of one TabItem so that just the content of the menu of the tabitem itself is not shown anymore.

May 10, 2012 at 11:32 AM

Do you refer to RibbonTabItems, TabItem with BackstageStyle or general TabItem?

May 12, 2012 at 1:35 PM

i refer to RibbonTabItems.

I have a simple Fluent Ribbon menu but for the first tab i just not want to show the ribbon iteself that means:

----------------------------------------------
| Do not show | a tab | a tab |
----------------------------------------------

buttons, checkboxes and so on

----------------------------------------------


----------------------------------------------
| Do not show | a tab | a tab |
----------------------------------------------

Colappse this menu

----------------------------------------------

May 12, 2012 at 8:39 PM

Hi

I hope I got it the right way:

Catch the the event "SelectedTabChanged" of the RibbonControl and get the selected index. If it is the one of the first tab ("Do not show") change the index of the selected tab to -1. This has the effect like pressing on the button below the minimize/maximize/close Buttons.

Hope it helps

Igor

May 12, 2012 at 10:22 PM
Edited May 13, 2012 at 11:28 AM

thanks i will try.