in winform when i create a combobox i can found event \"SelectedIndexChanged\" the event work after index of combobox changed
private void combo
Actually The event 'SelectionChanged' is called after index and value are changed you can check it simple
public partial class MainWindow : Window
{
private string[] _cmbxSource = new string[] {
"ZeroIndex",
"FirstIndex"
};
public MainWindow()
{
InitializeComponent();
cmbx.ItemsSource = _cmbxSource;
cmbx.SelectionChanged += cmbx_SelectionChanged;
}
void cmbx_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
MessageBox.Show(string.Format("Value and Index has been changed {0} {1}",
_cmbxSource[cmbx.SelectedIndex], cmbx.SelectedIndex));
}
}