Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Items of invisble tab are shown #235

Closed
pschimmel opened this issue Dec 29, 2015 · 0 comments
Closed

Items of invisble tab are shown #235

pschimmel opened this issue Dec 29, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@pschimmel
Copy link
Contributor

In my application I'd like to make some ribbon tabs invisible if no project is loaded.
However if I set the Visibility property of the first RibbonTabItem to Collapsed the content of the tab item like RibbonGroupBoxes and Buttons are still shown.
I reduced my sample to the following XAML to be able to reproduce the issue. No code behind needed.

<Grid x:Name="mainGrid">
  <fluent:Ribbon>
    <fluent:RibbonTabItem Header="Start" Visibility="Collapsed">
      <fluent:RibbonGroupBox Name="Calculate" Header="Calculate" Icon="pack://application:,,,/NAS;component/Images/Calculate.png">
        <fluent:Button LargeIcon="pack://application:,,,/NAS;component/Images/Calculate.png" Icon="pack://application:,,,/NAS;component/Images/Calculate.png" Header="Calculate"/>
      </fluent:RibbonGroupBox>
    </fluent:RibbonTabItem>
    <fluent:RibbonTabItem Header="Help">
      <fluent:RibbonGroupBox Name="Help" Header="Help" Icon="pack://application:,,,/NAS;component/Images/Help.png">
        <fluent:ToggleButton LargeIcon="pack://application:,,,/NAS;component/Images/InstantHelp.png" Icon="pack://application:,,,/NAS;component/Images/InstantHelp.png" Header="Instant Help"/>
        <fluent:Button LargeIcon="pack://application:,,,/NAS;component/Images/Website.png" Icon="pack://application:,,,/NAS;component/Images/Website.png" Header="Website"/>
      </fluent:RibbonGroupBox>
    </fluent:RibbonTabItem>
  </fluent:Ribbon>
</Grid>

BTW: I'm using version 3.6.1.236

@batzen batzen added this to the 4.0.0 milestone Dec 29, 2015
@batzen batzen self-assigned this Dec 29, 2015
@batzen batzen closed this as completed in c425577 Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants