private void QuickTabs_TabSelectionChanged(object sender, TabSelectionChangedEventArgs e) { var i = Items.IndexOf(e.Tab); if (e.IsSelected && i != -1 && i != SelectedIndex) { SelectedIndex = i; } }
private void QuickTabs_TabSelectionChanged(object sender, TabSelectionChangedEventArgs e) { System.Windows.Forms.MessageBox.Show($"Tab '{e.Tab}' ({e.SelectedIndex}) is selected!"); }