title: How to Bind to a property defined in code-behind from XAML
body: <p>How can I bind the <code>Text</code> property of the <code>TextBox</code> to a <code>FoundationHeight</code> clr-property defined in code-behind.</p>
  
  <p><strong>xaml</strong></p>
  
  <pre><code>&lt;TextBox Text="{Binding FoundationHeight}"/&gt;
  </code></pre>
  
  <p><strong>c#</strong></p>
  
  <pre><code>public double FoundationHeight { get; set; }
  public AssignColumnPropertiesWindow()
  {
      InitializeComponent();
      FoundationHeight = 60;
  }
  </code></pre>