title: multi Datacontext wpf
body: <p>Who can explain to me how to use two different datacontext ? </p>
  
  <p>this is my file.xaml.cs :</p>
  
  <pre><code>public partial class MainWindow : Window
  {
      public MainWindow()
      {
          InitializeComponent();
  
          DataContext = new string[] { "Female", "Male", "Animal", "Safe", "Soft", "Hard", "Space", "Landscape", "Outside", "Inside",
          "City", "France", "Flower", "Sunset", "Sky", "Fireworks", "Spring", "Winter", "Summer", "Fall", "Christmas", "Halloween",
          "Ghost", "Demon", "Angel", "Watermelon", "Storm", "Waterfall", "Night", "Sun","Moon", "Dog", "Cat", "Food", "Cheese",
          "Kancolle", "IT", "UFO", "Travel", "Sport", "Nightmare"};
     } 
  </code></pre>
  
  <p>and here my file.xaml :</p>
  
  <pre><code>&lt;ScrollViewer HorizontalAlignment="Left" Height="170" VerticalAlignment="Top" Width="97" Margin="10,149,0,0"&gt;
          &lt;ListBox ItemsSource="{Binding .}"&gt;
              &lt;ListBox.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;CheckBox Content="{Binding Path=.}" /&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListBox.ItemTemplate&gt;
          &lt;/ListBox&gt;
      &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>Everything work well here, but i would like add an second ScrollViewer exactly like the first one, but with another content. so the datacontexte need to be different for each of them.</p>
  
  <p>thank you for giving me a little of your time.</p>