title: Display image from resources by binding -WPF
body: <p>I have an icon on resources that it key is: <code>xxx</code></p>
  
  <p>I want to bind it to an image in xaml..</p>
  
  <p>1:</p>
  
  <pre><code>  &lt;Image Source="{x:Static p:Resources.xxx}"&gt;&lt;/Image&gt;
  </code></pre>
  
  <p>2:</p>
  
  <pre><code>  &lt;Image&gt;
       &lt;Image.Source&gt;
           &lt;BitmapImage UriSource="{Binding x:Static p:Resources.xxx}"/&gt;
          &lt;/Image.Source&gt;
     &lt;/Image&gt;
  </code></pre>
  
  <p>3:</p>
  
  <pre><code> &lt;Image Source=" {Binding x:Static p:Resources.xxx,Converter={StaticResource IconToBitmap_Converter}}"&gt;&lt;/Image&gt;
  </code></pre>
  
  <p>4:</p>
  
  <pre><code> &lt;Image&gt;
      &lt;Image.Source&gt;
          &lt;BitmapImage UriSource="{Binding x:Static p:Resources.xxx,Converter={StaticResource IconToBitmap_Converter}}"/&gt;
      &lt;/Image.Source&gt;
   &lt;/Image&gt;
  </code></pre>
  
  <p>The above ways does not work, how am I supposed to do that?</p>