title: Bind Dictionary to ItemsControl in C#/WPF
body: <p>I'm trying to bind KeyValuePair Elements from a Dictionary to a ItemsControl.
  My Dictionary has 15 Elements and the following code shows me 15 TextBoxes:</p>
  
  <pre><code>&lt;WrapPanel Name="PersonsWrapPanel" Grid.Row="0"&gt;
      &lt;ItemsControl ItemsSource="{Binding Persons}" &gt;
          &lt;ItemsControl.ItemsPanel&gt;
              &lt;ItemsPanelTemplate&gt;
                  &lt;WrapPanel Orientation="Horizontal" Width="auto"&gt;
                  &lt;/WrapPanel&gt;
              &lt;/ItemsPanelTemplate&gt;
          &lt;/ItemsControl.ItemsPanel&gt;
          &lt;ItemsControl.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                      &lt;TextBox Text="{Binding Value.Text}"&gt;&lt;/TextBox&gt;
              &lt;/DataTemplate&gt;
          &lt;/ItemsControl.ItemTemplate&gt;
      &lt;/ItemsControl&gt;
  &lt;/WrapPanel&gt;
  </code></pre>
  
  <p>Unfortunately without any TextBox content (which would be Key or Value).
  Any ideas?</p>