title: How to see design-time data-binding in XAML editor (it works in runtime)?
body: <p>I data-binded version number to appear as follows:</p>
  
  <pre><code>&lt;Window &lt;!-- ... --&gt; DataContext="{Binding RelativeSource={RelativeSource Self}}"&gt;
      &lt;Grid&gt;
          &lt;TextBlock&gt;
              Version is: 
              &lt;Run Text="{Binding Version, Mode=OneWay}"&gt;&lt;/Run&gt;
              and advancing...
          &lt;/TextBlock&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>and it's working during run-time.</p>
  
  <p>How can I see it during design-time in the XAML editor in Visual Studio 2012 ? I only see:</p>
  
  <pre><code>Version is: and advancing...
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>Version is: 5.2.2 and advancing...
  </code></pre>
  
  <h3>EDIT - My solution:</h3>
  
  <p><a href="https://stackoverflow.com/a/16402116/587467">Jure's answer below</a> works, but I ended up using a <a href="https://stackoverflow.com/a/5368479/587467">dummy view-model static code technique</a>, which works better for me since the data is a mock of the real view-model type:</p>
  
  <pre><code>d:DataContext="{Binding Source={StaticResource DesignViewModel}}" ...
  </code></pre>