-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
ContextualTabs visibility problem #660
Comments
Well, i am not sure i really should consider this a bug in the ribbon. What's your use case for this? What are you trying to achieve? |
Well I was just trying to change the visibility of the tabs when the user clicks on a button in the ribbon. I needed some tabs to be hidden on startup. My solution was to not change the visibility in the Initialize method. I changed the way my app works so that there is no need to hide those tabs on startup. After the app is loaded I can change the visibility in behind code without any problem as you can see in the button_click method. That is why I thought it was a bug. |
In your app the button click only modifies the groups visibility.
If visibility is set manually on a tab or group that value can't be overwritten be the style triggers. |
Ok, good to know. |
Do have any further questions or can we close this issue? |
No. It can be closed. Thanks. |
As this issue was reported again with #673 i had another look and found a solution. |
Great! Thanks! |
Environment
There is an issue that ContextualTabs or Tabs will not be drawn correctly or even be shown if the visibility is set in begin code on startup.
I attached a repro. To reproduce:
-Start the application.
-Click on Buttons 1 and 2 on the home tab.
-This will change the next tabs.
-This works fine. You will see the Tab with header 11111 and the tab with header 22222 depending which button you click.
-Now stop the application.
-Go to the behind code and activate the 3 lines after the InitializeComponent method.
-Restart the application.
-Click button 1 and 2 on the Home tab.
-See how the next tab is not working correctly.
Once again I realy appreciate all the effort you put into this great Ribbon.
Regards
CTabsTest 2.zip
The text was updated successfully, but these errors were encountered: