title: How to set data context for user control with prism wpf?
body: <p>This my <strong>view.xaml</strong>:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height=".5*"/&gt;
          &lt;RowDefinition Height="0.5*"/&gt;
      &lt;/Grid.RowDefinitions&gt;
  
      &lt;Grid Grid.Row="0" x:Name="grdFormSearch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"&gt;
          &lt;local:StudentUserControl HorizontalAlignment="Stretch" Height="100" VerticalAlignment="Stretch"/&gt;
      &lt;/Grid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Above I added a <code>StudentUserControl</code> in view.xaml.</p>
  
  <p><strong>StudentUserControl.xaml.cs:</strong></p>
  
  <pre><code>public partial class StudentUserControl : UserControl
  {
     public StudentUserControl(StudentViewModel ViewModel)
     {
         InitializeComponent();
         this.DataContext = ViewModel;
     }
  }
  </code></pre>
  
  <p><strong>StudentViewModel.cs:</strong></p>
  
  <pre><code>public StudentViewModel(IEventAggregator eventAggregator, IUnityContainer container)
  {
       _eventAggregator = eventAggregator;
       _container = container;
  }
  </code></pre>
  
  <p>It is throwing an error in xaml, as it's expecting a parameterless constructor!</p>
  
  <p>How to set the <code>DataContext</code> for the <code>UserControl</code>?
  What is the best approach to do it?</p>