This project is read-only.

Collapsed ribbon tab items and groups

Oct 8, 2014 at 6:35 AM

I've had a problem for sometime now where when I have a ribbon tab item initially collapsed and attach a group to it using the same method as displayed in FluentTest, the group does not display on the UI after changing the ribbon tab item visibility.
<Fluent:RibbonTabItem Name="ribbontabitem_TabItemOne" Header="Test1" Group="{Binding ElementName=tabGroup1, Mode=OneWay}" Visibility="Collapsed" />
I've resorted to creating the group in code behind and then simply setting the appropriate tab items group to that item which highlights the tab item header under the correct group color, however it has some undesired results when the visibility is set to visible, such as not correctly showing the group name / dark line below the group name, and the text color matching the group item.
 objToolsGroup = new RibbonContextualTabGroup();
            objToolsGroup.Header = "Tools";
            objToolsGroup.Background = Brushes.Orange;
            objToolsGroup.BorderBrush = Brushes.Orange;
            objToolsGroup.Visibility = Visibility.Visible;

//Attach tools group to relevant tabs
            ribbontabitem_TabItemOne.Group = objToolsGroup;
            ribbontabitem_TabItemTwo.Group = objToolsGroup;
Can anyone assist in a way to make this work with collapsed tab items?
Oct 9, 2014 at 7:53 PM
Could you upload a repro for this?