As shown in the post RelativeSource in DataTemplate works with TabControl but not with TabItem the TabItem and SelectedContent are hosted in different panels hence SelectedItem.Header is not working as it's not actually a tabItem
Posting the snoop image from the earlier post below