title: Binding to static property
body: <p>I'm having a hard time binding a simple static string property to a TextBox. </p>
  
  <p>Here's the class with the static property:</p>
  
  <pre class="lang-csharp prettyprint-override"><code>public class VersionManager
  {
      private static string filterString;
  
      public static string FilterString
      {
          get { return filterString; }
          set { filterString = value; }
      }
  }
  </code></pre>
  
  <p>In my xaml, I just want to bind this static property to a TextBox:</p>
  
  <pre class="lang-XML prettyprint-override"><code>&lt;TextBox&gt;
      &lt;TextBox.Text&gt;
          &lt;Binding Source="{x:Static local:VersionManager.FilterString}"/&gt;
      &lt;/TextBox.Text&gt;
  &lt;/TextBox&gt;
  </code></pre>
  
  <p>Everything compiles, but at run time, I get the following exception:</p>
  
  <blockquote>
    <p>Cannot convert the value in attribute
    'Source' to object of type
    'System.Windows.Markup.StaticExtension'.
    Error at object
    'System.Windows.Data.Binding' in
    markup file
    'BurnDisk;component/selectversionpagefunction.xaml'
    Line 57 Position 29.</p>
  </blockquote>
  
  <p>Any idea what I'm doing wrong?</p>