title: Object reference not set to an instance of an object in WPF Combo box
body: <p>When try to access newly added value in the combo box it gives this error message!</p>
  
  <p><strong>Object reference not set to an instance of an object</strong> </p>
  
  <p>window have one combo box and text box! when click the Add new item button, text box value should be loaded in to the combo box.! This loaded action working fine! but  when we try to access the newly added one( for example when click edit button) , above error message displayed.</p>
  
  <p>XAML Code:</p>
  
  <pre><code>&lt;ComboBox x:Name="cmbList"  x:FieldModifier="public" HorizontalAlignment="Left" Margin="58,10,0,0" VerticalAlignment="Top" Width="147" 
                      &lt;ComboBoxItem Content="1st Item"/&gt;
                      &lt;ComboBoxItem Content="2nd Item"/&gt;
                      &lt;ComboBoxItem Content="3rd Item"/&gt;
   &lt;/ComboBox&gt;
  </code></pre>
  
  <p>Button Click function :</p>
  
  <pre><code>cmbList.Items.Add(textbox1.text)
  </code></pre>
  
  <p>Up to this point it working properly! If I try to re select it gives this error message!</p>
  
  <p>Please anyone correct me!</p>
  
  <p>Thanks in Advance!</p>