In the example code you have
myButton.Visibility = Visibility.Collapsed;
which says a button will not show if the tab is not active.
Can you define active as when I have 3 tabs with my button indicator on all 3 charts I get 3 buttons.
I tried
myButton.Visibility = Visibility.Hidden;
but that didn't make any difference.
Am I misunderstanding the word 'active' here or have I made some other error?
Here is all my code to do with this
myButton.Visibility = Visibility.Collapsed; foreach (TabItem tab in this.chartWindow.MainTabControl.Items)
Comment