You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TabControl - TabItem Header text is not visible #2602
But the result is that header text (TAB 1, TAB 2) is not visible and also the bottom border of the TabItem is not visible when the tab is selected. There is some problem with the foreground (screenshot from my project):
It should look like this (screenshot from demo project):
I am able to set the TabItem header text only like this:
but this does not solve the problem with the missing (not visible) bottom border of the selected TabItem. Is it a bug or did I miss something? Thank you for any advice.
@viktorspacil This is a side question, but related to TabControl and styling. I've been trying to use and not able to style like shown in the MaterialDesignTheme examples or what you've done above.
Seems like my app can't find the resource. Style="{StaticResource MaterialDesignFilledTabControl}"
Is there something extra that needs to be added in App.xaml or elsewhere?
The original problem still persists on released version 4.4.0 and even on 4.5.0-ci120. I have found out that when the application is running in the debug mode and I change the xaml on the fly (for example encapsulate TabControl to Grid) then the TabItem header text and bottom border pop out. When I stop and start the application again then problem is back.
I have also found out that the style "MaterialDesignTabItem" (version 4.4.0) looks like this:
The original problem still persists on released version 4.4.0 and even on 4.5.0-ci120. I have found out that when the application is running in the debug mode and I change the xaml on the fly (for example encapsulate TabControl to Grid) then the TabItem header text and bottom border pop out. When I stop and start the application again then problem is back. I have also found out that the style "MaterialDesignTabItem" (version 4.4.0) looks like this:
Hi,
I took todays master and tried the fix. Text foreground problem (TabItem Header) is gone but the bottom border (current tab highlight) still persists, bottom border is still missing.
I encountered the same problem as viktorspacil when using the default style (not filled) where the header text and the highlight of the selected item wasn't being shown. After updating to the latest pre-release the header text is now being shown but the background of the tabitems has changed to the PrimaryMid color and the highlight is indeed still missing.
Activity
shaggygi commentedon Mar 19, 2022
@viktorspacil This is a side question, but related to TabControl and styling. I've been trying to use and not able to style like shown in the MaterialDesignTheme examples or what you've done above.
Seems like my app can't find the resource.
Style="{StaticResource MaterialDesignFilledTabControl}"Is there something extra that needs to be added in App.xaml or elsewhere?
Any help is appreciated.
ahmed-abdelrazek commentedon Mar 19, 2022
@shaggygi you need to use the pre-release nuget or compile the latest yourself from github
shaggygi commentedon Mar 19, 2022
@ahmed-abdelrazek yup, that did the trick. thank you. any idea when the nuget version will be final release?
ahmed-abdelrazek commentedon Mar 19, 2022
no, i guess when it's ready
we can ask @Keboo but i don't think we will get a better answer
Keboo commentedon Mar 19, 2022
Hopefully the next release will be soon, I need to fix some of the deployment stuff (didn't realize I had broken it).
viktorspacil commentedon Mar 22, 2022
The original problem still persists on released version 4.4.0 and even on 4.5.0-ci120. I have found out that when the application is running in the debug mode and I change the xaml on the fly (for example encapsulate TabControl to Grid) then the TabItem header text and bottom border pop out. When I stop and start the application again then problem is back.
I have also found out that the style "MaterialDesignTabItem" (version 4.4.0) looks like this:
But when I am debugging the demo application the style "MaterialDesignTabItem" looks like this:
There is a difference in the setting of background/foreground instead of wpf:ColorZoneAssist.Background/wpf:ColorZoneAssist.Foreground".
ElieTaillard commentedon Mar 24, 2022
Also
wpf:ColorZoneAssist.Modeandwpf:RippleAssist.FeedbackKeboo commentedon Mar 25, 2022
FWIW, the issue appears to be the foreground color not making to the content. I started work on a branch to fix it (mostly just a test for the moment). https://github.com/Keboo/MaterialDesignInXamlToolkit/tree/fix2602
viktorspacil commentedon Apr 4, 2022
Hi,
I took todays master and tried the fix. Text foreground problem (TabItem Header) is gone but the bottom border (current tab highlight) still persists, bottom border is still missing.
GoranVDB commentedon Apr 7, 2022
Hi,
I encountered the same problem as viktorspacil when using the default style (not filled) where the header text and the highlight of the selected item wasn't being shown. After updating to the latest pre-release the header text is now being shown but the background of the tabitems has changed to the PrimaryMid color and the highlight is indeed still missing.
NeilMacMullen commentedon Apr 7, 2022
I've also noticed that the ContextMenu background appears to be missing.
ElieTaillard commentedon Apr 7, 2022
@NeilMacMullen this is fixed in the latest 4.5.0 preview NuGet package #2606
NeilMacMullen commentedon Apr 7, 2022
Super - thanks @Xaalek