title: MVVM DataTemplate and non-empty view model constructor
body: <p>I have the below DataTemplate:</p>
  
  <pre><code>    &lt;DataTemplate DataType="{x:Type vm:MyViewModel}"&gt;
          &lt;views:MyView/&gt;
      &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>The thing is, my view model has a constructor that takes parameters which are automatically injected by the container (unity).  In order for the DataTemplate to work though, MyViewModel needs to have a paramaterless constructor.</p>
  
  <p>Is there any other way I can inject the appropriate values into my view model if I am using a DataTemplate to create it?</p>