Removing this line fixes the Text-Foreground issue of the TabItem.