title: Binding string from value of list as StaticResource
body: <p>I have a big problem when i'm trying to bind name of static resource from list in code behind.</p>
  
  <pre><code>public IDictionary&lt;int, Menuitem&gt; Categories = new Dictionary&lt;int, Menuitem&gt;();
  Categories.Add(1, new Menuitem() { Name = "Menu1", Image = "Menu1Resource" });
  list.ItemsSource = Categories;
  </code></pre>
  
  <p>in xaml I have</p>
  
  <pre><code>&lt;Page.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="Resources/Icons.xaml"/&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/Page.Resources&gt;
  </code></pre>
  
  <p>and i want to bind like this</p>
  
  <pre><code>&lt;ListView Padding="20 0" Grid.Row="1" x:Name="list" &gt;
              &lt;ListView.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;Border Background="#53921D" Margin="0 0 0 10" Padding="15"&gt;
                          &lt;Grid&gt;
                              &lt;Grid.ColumnDefinitions&gt;
                                  &lt;ColumnDefinition Width="1*"/&gt;
                                  &lt;ColumnDefinition Width="9*"/&gt;
                              &lt;/Grid.ColumnDefinitions&gt;
                              &lt;Image Source="{StaticResource ResourceKey={Binding Value.Image}}"/&gt;
                              &lt;TextBlock Grid.Column="1" Foreground="White" Text="{Binding Value.Name}" HorizontalAlignment="Center" FontSize="30" VerticalAlignment="Center"/&gt;
                          &lt;/Grid&gt;
                      &lt;/Border&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListView.ItemTemplate&gt;
              &lt;ListView.ItemContainerStyle&gt;
                  &lt;Style TargetType="ListViewItem"&gt;
                      &lt;Setter Property="HorizontalContentAlignment" Value="Stretch" /&gt;
                  &lt;/Style&gt;
              &lt;/ListView.ItemContainerStyle&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>Binding to TextBlock works well, but to Image Source doesn't.
  when I Bind to image source like</p>
  
  <pre><code>Source="{StaticResource Menu1Resource}"
  </code></pre>
  
  <p>it working too, but i want to bind automatically from list.
  Can anyone give my any tip to solve this problem?;)</p>