title: Howto: WPF designer binding preview with Prism
body: <p>How can I convince the WPF Designer in Visual Studio (2017) to preview the Prism bindings results at design-time? The bindings are working at runtime without any special configuration of ViewModelLocator.</p>
  
  <p>Having this MainWindow:</p>
  
  <pre><code>&lt;Window x:Class="ViewModelLocator.Views.MainWindow"
      ...
          prism:ViewModelLocator.AutoWireViewModel="True"
          Title="{Binding Title}"&gt;
      &lt;Grid&gt;
          &lt;TextBlock Text="{Binding Title}" /&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>And this ViewModel:</p>
  
  <pre><code>namespace ViewModelLocator.ViewModels
  {
      public class MainWindowViewModel : BindableBase
      {
          private string _title = "Prism Unity Application";
          public string Title
          {
              get { return _title; }
              set { SetProperty(ref _title, value); }
          }
      }
  }
  </code></pre>
  
  <p>Sample copied from: <a href="https://github.com/PrismLibrary/Prism-Samples-Wpf/tree/master/08-ViewModelLocator" rel="nofollow noreferrer">https://github.com/PrismLibrary/Prism-Samples-Wpf/tree/master/08-ViewModelLocator</a></p>