title: How to use multiple dictionaries in a listbox DataTemplate?
body: <p>I am wondering if it is possible to use two dictionaries in a listbox data template. I want to use the value of Names in a textbox, and the value of EnabledNames for a check box. Is this possible? If so, how would I go about doing it?</p>
  
  <p><em>Some example data would be:</em></p>
  
  <pre><code>Dictionary&lt;string, string&gt; Names = new Dictionary&lt;string, string&gt;()
              {
                  { "4EG25","John" },
                  {"923OT", "Joe" }
              };
              Dictionary&lt;string, bool&gt; EnabledNames = new Dictionary&lt;string, bool&gt;()
              {
                  { "4EG25",false },
                  {"923OT", true}
              };
  </code></pre>
  
  <p><em>And how I want to use in a way like:</em> </p>
  
  <pre><code>&lt;ListBox x:Name="listBox" HorizontalAlignment="Left" Height="359" VerticalAlignment="Top" Width="673" Margin="0,0,-0.333,-0.333" ItemsSource="{Binding Path=Names, Mode=OneWay}"&gt;
                          &lt;ListBox.ItemTemplate&gt;
                              &lt;DataTemplate&gt;
                                  &lt;StackPanel Orientation="Horizontal"&gt;
                                      &lt;CheckBox IsChecked="{Binding Path=EnabledNames[ItemsSource.Key].Value}" /&gt;
                                      &lt;TextBlock Text="{Binding Path=ItemsSource.Value}"/&gt;
                                  &lt;/StackPanel&gt;
                              &lt;/DataTemplate&gt;
                          &lt;/ListBox.ItemTemplate&gt;
                      &lt;/ListBox&gt;
  </code></pre>