Ribbon and RibbonContextualTabGroup

Apr 5, 2014 at 1:35 AM
Edited Apr 5, 2014 at 1:39 AM
Hi,

I have a question, that I think might be a bug somewhere.

I have this (relevante code):
 <fluent:Ribbon Name="ribbon"  Grid.Row="0" Visibility="{Binding Path=IsRibbonsVisible, Converter={StaticResource booleanToVisibilityConverter}}">
 <fluent:Ribbon.ContextualGroups>
                <fluent:RibbonContextualTabGroup Header="Tools" Visibility="Collapsed" x:Name="toolsGroup" Background="Green" BorderBrush="Green" />
            </fluent:Ribbon.ContextualGroups>
<fluent:RibbonTabItem Header="Contextual Tab" Name="contexttab" Visibility="Hidden" Group="{Binding ElementName=toolsGroup}"/>
</fluent:Ribbon>
When I start the application with the ribbon collapsed, the contextual menu never appear's...if I start with Visibility="Visible" it works just fine.

I'm using MVVM...

Anyone can give me a tip?

Thanks,
Developer
Apr 10, 2014 at 3:02 PM
If you want to hide the Ribbon you should better use IsMinimized.
Maybe that works.
Apr 11, 2014 at 2:18 PM
I'll try it out. tks
Developer
Jun 28, 2014 at 10:08 AM
Did it work that way?
Jun 30, 2014 at 12:09 AM
I had to add it in code behind.... isMinized did not work as well
Developer
Jul 10, 2014 at 8:01 AM
Try set both fluent:RibbonContextualTabGroup and fluent:RibbonTabItem 's visibilty with same value, such as "hidden"
and set fluent:RibbonContextualTabGroup 's visiblity to visible not set tabitem 's when you wants to show this contextual ribbon item.
That is work. In my project.

And if there is still any problem. Please attached a sample to show your problem.
Marked as answer by batzen on 9/20/2014 at 4:17 AM