I am currently experiencing the exact following issue: WPF TabControl collapsed tab headers are not completely hidden (when I collapse the TabItems, I still see a gray line of a few pixels where the TabControl header is located)
But I cannot do it in XAML (I think), because I need to hide the TabPanel only when the application goes into full screen, so when the application exits full screen, the TabPanel should go back to visible.
I am less experienced in styles, how would I set the TabPanel of my TabControl to Visibility.Collapsed in code please?
Thank you for your time and help, it is greatly appreciated!
If I understand correctly what you need, then try this implementation: