title: How to assign window property value to control property on this form in WPF?
body: <p>Suppose there is form MainWindow which has property string property Propery1. How to assign this property value to txtDisplay.Text property? Control txtDisplay is placed on form MainWindow .</p>
  
  <pre><code>public partial class MainWindow : Window
      {
        ...
          public bool Propery1
          {
              get { return this.txtDisplay.Text.Length &gt; 0; }
          }
   ...
  }
  
  &lt;Window x:Class="WpfApplication1.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="Binary Calculator" Height="350" Width="625"&gt;
      ...
          &lt;TextBox  Name="txtDisplay"  Style="{StaticResource MyTextBox}"  MaxLength="32" Grid.Column="0" Grid.Row="0"  Grid.ColumnSpan="6" KeyDown="txtDisplay_KeyDown"/&gt;
  ...
  &lt;/Window&gt;
  </code></pre>