title: Combobox selectionchanged event triggers without even changing the selection in the ComboBox
body: <p>Could you help me find the error in this one: The event triggers before even the windows form is loaded. I start to see the message Box and then I click OK,after that it loads the main screen.After that everything works perfectly, I wonder what triggers the ComboBox SelectionChanged Event before even loading the window.The FillComboBoxFamilyData(SegmentCode) just creates a dataset and puts the values int he ComboBox. Please Refer to this link for complete code.</p>
  
  <p><a href="https://stackoverflow.com/questions/4925825/not-able-to-make-cascading-comboboxes-work">Not able to make cascading comboboxes work</a></p>
  
  <p>Any help would be highly appreciated.Thanks.</p>
  
  <pre><code> &lt;ComboBox Height="23" HorizontalAlignment="Left" Margin="35,26,0,0" Name="comboBox1" VerticalAlignment="Top" Width="205" ItemsSource="{Binding Source={StaticResource tblSegmentViewSource}}"  DisplayMemberPath="Segment Name" SelectedValuePath="Segment Code" SelectionChanged="comboBox1_SelectionChanged"/&gt;
   &lt;ComboBox Margin="304,26,395,93" Name="comboBox2" /&gt;
  
  
      private void comboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
      {
  
          MessageBox.Show(comboBox1.SelectedValue.ToString());
          SegmentCode = Convert.ToInt32(comboBox1.SelectedValue.ToString());
          FillComboBoxFamilyData(SegmentCode);
  
      }
  </code></pre>