title: wpf textbox binding datetime
body: <p>Im trying to set date time to a textbox but that gives an exception: System.Windows.Data.Binding.Path' threw an exception.</p>
  
  <p>If I use TextBlock   everything is fine.</p>
  
  <p>any help will be appreciated</p>
  
  <p>thank you</p>
  
  <pre><code>xmlns:sys="clr-namespace:System;assembly=mscorlib"
  
   &lt;TextBlock   Name="block" Text="{Binding Source={x:Static sys:DateTime.Now},  StringFormat='yyyy-MM-dd HH:mm:ss '}"/&gt;
  
   &lt;TextBox   Name="block1" Text="{Binding Source={x:Static sys:DateTime.Now},  StringFormat='yyyy-MM-dd HH:mm:ss '}"/&gt;
  </code></pre>