Closed BornToBeRoot closed 6 years ago
This may not be nice, but at least it works...
Window window = Application.Current.Windows.OfType<Window>().FirstOrDefault(x => x.IsActive);
if (window != null)
{
foreach (TabablzControl tabablzControl in VisualTreeHelper.FindVisualChildren<TabablzControl>(window))
{
tabablzControl.Items.OfType<DragablzPingTabItem>().First(x => x.ID == _tabId).Header = Host;
}
}
Hi,
i try to update the header text from the code behind. I have an action, which is passed into the tab content.
In the tab control host:
In the control:
But this only works, when the tab is not dragged out of the main window.
Any idea how to fix this?
Repo: https://github.com/BornToBeRoot/NETworkManager Ping