title: M-V-VM best practices
body: <p>I found two ways to use M-V-VM pattern in WPF:<br /></p>
  
  <ol>
  <li>allocate the ViewModel into the View's code behind (setting it as the DataContext);</li>
  <li>allocate the ViewModel into a XAML file and create the corresponding view using a DataTemplate.</li>
  </ol>
  
  <p>The Model can be allocated into the ViewModel's constructor.<br />
  <br/>
  What do you think about this way of using M-V-VM pattern? What are best practices relative to it?<br />
  Thank you</p>