Hello again.
I have a simple question, probably a simple answer, but I can't figure it out :(
I'm creating tabitem dynamically. I've done that, but now I want to remove it...
this .ClearValue(UserControl .ContentProperty);
var tc = VisualTreeHelperExtensions .FindAncestor<TabControl >(this );
tc.Items.Remove(tc.SelectedIndex);
All good, except for the tab remaining at the top, unselected. The third line should be enough.
My search only returns hi-tech scenarios, I just need for the tab to be removed.
Thank you.
http://problemaresolvido.blogspot.com/