Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1405
Hidden visibility for RibbonTabItem
posted

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

Parents
  • 54937
    Offline posted

    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.

Reply Children
No Data