title: WPF XAML designer showing bound property names instead of property values
body: <p>One of my XAML files shows a strange behaviour in the XAML designer (but not during runtime):</p>
  
  <pre><code>public class MyDesignTimeViewModel
  {
  
      public MyDesignTimeViewModel()
      {
          MyText = "abc";
          MyInt = 5;
      }
  
      public string MyText { get { ... } }
      public int MyInt { get { ... } }
  }
  </code></pre>
  
  <p>Then in XAML:</p>
  
  <pre><code>&lt;UserControl xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
               ...
               d:DataContext="{d:DesignInstance vm:MyDesignTimeViewModel}"
               &gt;
      &lt;TextBlock Text="{Binding MyText}" /&gt;
      &lt;TextBlock Text="{Binding MyInt}" /&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>In the XAML designer, the two TextBlock instances show the following content:</p>
  
  <pre><code>MyText
  0
  </code></pre>
  
  <p>The XAML designer shows the property name of the string property, and for the int property, it shows a 0.</p>
  
  <p>There's no error in the error window. Furthermore, it seems to actually read the properties, because if I change the binding to a non-existing property name, the content disappears.</p>
  
  <p>I've restarted Visual Studio and my PC and deleted the <code>.suo</code> file.</p>
  
  <p>Any explanation for this behaviour?</p>