After removing tab and adding the tab, the header disappears, But again, if an item is added, the header will be shown
var tabItem = new TabItem();
tabItem.Header = header;
tabItem.Content = new PackageDetailView(yamlLink, isInstalled);
tabItemPackage.Items.Add(tabItem);
After removing tab and adding the tab, the header disappears, But again, if an item is added, the header will be shown