title: Binding a datacontext string property to a StaticResource key
body: <p>I have an List values with a ResourceKey and a Caption, these values are both strings. The Resource is the name of an actual resource defined in a resource dictionary. Each of these ResourceKey Icons are Canvas's.</p>
  
  <pre><code>&lt;Data ResourceKey="IconCalendar" Caption="Calendar"/&gt;
  &lt;Data ResourceKey="IconEmail" Caption="Email"/&gt;
  </code></pre>
  
  <p>I then have a list view which has a datatemplate with a button and a text caption below the button. What I want to do is display Resource static resource as the content for the button.</p>
  
  <pre><code>&lt;ListView.ItemTemplate&gt;
      &lt;DataTemplate&gt;
          &lt;Grid&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="*" /&gt;
                  &lt;RowDefinition Height="Auto" /&gt;
              &lt;/Grid.RowDefinitions&gt;
  
              &lt;Button Content="{Binding ResourceKey}" Template="{StaticResource  RoundButtonControlTemplate}"/&gt;
              &lt;TextBlock Grid.Row="1" Margin="0,10,0,0" Text="{Binding Caption}" HorizontalAlignment="Center" FontSize="20" FontWeight="Bold" /&gt;
          &lt;/Grid&gt;
      &lt;/DataTemplate&gt;
  &lt;/ListView.ItemTemplate&gt;
  </code></pre>
  
  <p>I think I have tried every permutation with binding staticresource etc.</p>
  
  <p>I am open to alternatives, I know it may be easier to just have an image and set the source property.</p>
  
  <p>Thanks</p>