title: Multiple DataContext in wpf MVVM?
body: <p>i have a window that i'd like to bind the data context from 2 different DataModels from.  i've come across this post:
  <a href="https://stackoverflow.com/questions/679933/wpf-binding-multiple-controls-to-different-datacontexts">WPF binding multiple controls to different datacontexts</a> and it's not working in my code.  i don't know if you have to set a 'new' instance of the classes to make it work, but i can't get it to show my data.  here's a sample</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Button Command="{Binding FurnaceDataViewModel.StartButtonCommand}"/&gt;
      &lt;Button Command="{Binding FurnaceDataViewModel.StopButtonCommand}"/&gt;
      &lt;Button Command="{Binding FurnaceDataViewModel.ClearButtonCommand}"/&gt;
  
      &lt;Label Content="{Binding FurnaceDataModel.TotalTimeIdle}" /&gt;
      &lt;Label Content="{Binding FurnaceDataModel.GallonsUsed}" /&gt;
      &lt;Label Content="{Binding FurnaceDataModel.TotalMoney}" /&gt;
      &lt;Label Content="{Binding FurnaceDataModel.TotalTimeRun}" /&gt;       
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p>i have my MainWindow Class:</p>
  
  <pre><code>FurnaceDataContext dataContext = new FurnaceDataContext();
  InitializeComponent();
  DataContext = dataContext;
  </code></pre>
  
  <p>here's my DataContext class</p>
  
  <pre><code>class FurnaceDataContext
  {
      public FurnaceDataViewModel FurnaceDataViewModel { get; set; }
      public FurnaceDataModel FurnaceDataModel { get; set; }
      public SqlDataModel SqlDataModel { get; set; }
  }
  </code></pre>
  
  <p>i can't get it to display my text correctly or my button commands. any ideas?</p>