title: Saving text from a textbox to global string. Best way to use the save?
body: <p>(Using WPF Application / WPF UserControl)</p>
  
  <p>It is possible to use the below code to save the text from a textbox to a global string.</p>
  
  <pre><code>private void commentBox_TextChanged(object sender, TextChangedEventArgs e)
  {
      Properties.Settings.Default.cmd01 = commentBox.Text;
  
      //always save on every input change??
      Properties.Settings.Default.Save();
  }
  </code></pre>
  
  <p>But what i wonder about now, is that in this case, the <code>save</code> is called on each text change. So if i understood correct, it saves now on each key pressed.</p>
  
  <p>Could i do this in a more clean way? For example when the user leaves the focus from the textbox or something ?</p>