Hy.
I have a question abount the RibbonTabItem. If I set the visibility to hidden, I get an empty space inside the ribbon where the RibbonTabItem was. Is this correct? It wouldn't be better to ignore the empty space and realign the RibbonTabItems?
I tryed to add a trigger were I set the width of the RibbonTabItem to 0 when the visibility is hidden. Here is the example, but it's not working.
<Style TargetType="infragisticsRibbon:RibbonTabItem">
<Style.Triggers>
<Trigger Property="Visibility" Value="Hidden">
<Setter Property="Width" Value="0"/>
</Trigger>
</Style.Triggers>
</Style>
Thanks very much for help.
Nico
In WPF, Visibility has 3 settings - Visible, Hidden and Collapsed. When set to Visible, the item is measured and displayed in the ui. When Collapsed, the item is not displayed or included in the layout/measurement. When set to Hidden, the element is included in the measure/arrangement but is not displayed. If you want the tab removed from the display and arrangement then you should set it to Collapsed.
Thanks very much. It's working.