title: Two way data binding to a control under a property
body: <p>I have a custom class in which I've implemented <code>INotifyPropertyChanged</code> and I can happily bind this to the <code>.Text</code> property of a TextBox on a form and have the data flow both ways.</p>
  
  <p>I'm now trying to achieve the same thing with a textbox on a usercontrol, via a property:</p>
  
  <pre><code>public string MyProperty
  {
      get { return MyPropertyTextBox.Text; }
      set { MyPropertyTextBox.Text = value; }
  }
  </code></pre>
  
  <p>I can bind my class to the <code>MyProperty</code> on the Usercontrol so that the value is set. </p>
  
  <p>But how do I get it so that when I edit the textbox the change is fed back to my class?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Not sure I explained myself very well + it's WinForms, not WPF.</p>
  
  <p>The text box itself isn't bound, I wanted the 'TextChanged' event of the textbox to also trigger 'PropertyChanged' of the usercontrol property. Built myself a proof of concept test, got that working, and then managed to implement it in my project.</p>
  
  <p>thanks for the suggestions though.</p>