Found this post which helped me remove the border line.
Basically, the TabControl
has embedded a hardcoded Border
control right beneath its TabPanel
control. The style for this Border control needs to be overridden to remove the border line (i.e. make transparent). And using the same style that I used for TabItem
, setting the visibility to Collapsed will hide the tabs.
This is working well for me.