예제 #1
0
        private void QuickTabs_TabSelectionChanged(object sender, TabSelectionChangedEventArgs e)
        {
            var i = Items.IndexOf(e.Tab);

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