title: Binding datacontext viewmodel to usercontrol view when using Mvvm
body: <p>I need some help binding the viewModel to the two usercontrol views I have created.</p>
  
  <p>Have created a Reservation Window that should contain these two usercontrols.</p>
  
  <p><strong>What i got:</strong></p>
  
  <ul>
  <li>ReservationView (Window)</li>
  <li>ReservationListView (Usercontrol)</li>
  <li>ReservationDetailView (Usercontrol)</li>
  </ul>
  
  <p><strong>ReservationView (Window) class</strong></p>
  
  <pre><code>public partial class ReservationView : Window
  {
      public ReservationView()
      {
          InitializeComponent();
          //DataContext = null;              
      }
  }
  </code></pre>
  
  <p><strong>ReservationListView (Usercontrol) class:</strong></p>
  
  <pre><code>public partial class ReservationListView : UserControl, IViewReservationListViewModel
  {
      public ReservationListView(IViewReservationListViewModel viewModel)
      {
          InitializeComponent();
          DataContext = viewModel;
      }
  }
  </code></pre>
  
  <p>The IViewReservationListViewModel is just a empty interface which makes the contact between the usercontrol view and the viewModel.</p>
  
  <p><strong>ReservationListViewModel</strong></p>
  
  <pre><code>public class ReservationListViewModel : INotifyPropertyChanged, IViewReservationListViewModel
  {
      public ReservationListViewModel()
      {
  
      }
  }
  </code></pre>
  
  <p>When I try to set the local:"usercontrol" in the xaml inside ReservationView, I get the following error: </p>
  
  <pre><code>The type "ReservationListView" does not include any accessible constructors.
  </code></pre>
  
  <p>How should I link those two usercontrol to the respective viewModels when I use MVVM?</p>