title: DataContext Binding and Refresh
body: <p>My scenario is:</p>
  
  <p>I have a WPF Window with 3 data-bound text boxes</p>
  
  <pre class="lang-xml prettyprint-override"><code>SettingsUI : Window
  
  &lt;Grid Name="SettingsUIGrid1"&gt;
      &lt;TextBox Text="{Binding val1}" ....
      &lt;TextBox Text="{Binding val2}" ....
      &lt;TextBox Text="{Binding val3}" ....
  &lt;/Grid&gt;
  </code></pre>
  
  <p>In the constructor I do this:</p>
  
  <pre><code>SettingsUIGrid1.DataContext = coll[0]; // collection first value
  </code></pre>
  
  <p>When the Cancel button is clicked, I close my window:</p>
  
  <pre><code>private void btnCancel_Click(object sender, RoutedEventArgs e) {
  Close();
  }
  </code></pre>
  
  <p>When I click the Show button, is shows values from the DB in text boxes, if user changes a text box value, and reloads the window the new value is displayed not the old one.  Can someone suggest what to do to reload the values again and clear the in memory object?</p>