title: Binding in PrepareContainerForItemOverride method
body: <p>I try to implement PrepareContainerForItemOverride method of ItemsControl. It will put items to TextBox. It works nice, but how can I binding an item to the textbox text property? One way mode works nice, but when I want two way mode, I have to know the path.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
          {
              base.PrepareContainerForItemOverride(element, item);
  
              if (element is TextBox)
              {
                  //((TextBox)element).Text = (string)item;
                  Binding binding = new Binding("I don't know what should i write here.");
                  binding.Mode = BindingMode.TwoWay;
                  ((TextBox)element).SetBinding(TextBox.TextProperty, binding);
              }
  }
  </code></pre>
  
  <p>Thank you for your help!</p>