title: How to programatically set the binding of a textbox with stringformat?
body: <p>How do I programmatically do the following (from the XAML):</p>
  
  <pre><code>&lt;TextBox Name="OrderDateText"
           Text="{Binding Path=OrderDate, StringFormat=dd-MM-yyyy}"
  
  public DateTime OrderDate
  </code></pre>
  
  <p>Right now I have the following</p>
  
  <pre><code>TextBox txtboxOrderdDate = new TextBox();
  </code></pre>
  
  <p>And I know I need to do something like</p>
  
  <pre><code>  Binding bindingOrderDate = new Binding();
    bindingOrderDate.Source = "OrderDate";
  </code></pre>
  
  <p>But I am stuck here ... not sure how to proceed to apply the StringFormat nor am I sure that SOURCE is the correct way (should I be using ElementName?)</p>