title: WPF In-Memory Image Display
body: <p>Im trying to build an Item Template for my list-view and im bound to a list of Entities. The entity I have has a <code>System.Drawing.Image</code> that I'd like to display, but so far I cannot for the life of me figure out how to bind it to the <code>&lt;Image&gt;</code> block.</p>
  
  <p><strong>Every example and documentation I can find on the internet pertains to Images accessible via an <code>uri</code> i.e. File on HDD or On Website</strong></p>
  
  <pre><code>    &lt;DataTemplate x:Key="LogoPreviewItem"&gt;
          &lt;Border BorderBrush="Black" BorderThickness="1"&gt;
              &lt;DockPanel Width="150" Height="100"&gt;
                  &lt;Image&gt;
                      &lt;Image.Source&gt;
                          &lt;!--
                              {Binding PreviewImage} is where the System.Drawing.Image
                              is in this context
                          --&gt;
                      &lt;/Image.Source&gt;
                  &lt;/Image&gt;
                  &lt;Label DockPanel.Dock="Bottom" Content="{Binding CustomerName}" /&gt;
              &lt;/DockPanel&gt;
          &lt;/Border&gt;
      &lt;/DataTemplate&gt;
  </code></pre>