title: Windows Phone 8.1 LongListSelector with Images
body: <p>I have a long list selector in my application. The list should display an icon and a caption below it. It appears as a grid as seen in the image below </p>
  
  <p><img src="https://i.stack.imgur.com/fDX4b.png" alt="enter image description here"></p>
  
  <p>The icon should be downloaded from the server and displayed, the icon is downloaded from the server as an byte array which can be used to generate the Bitmap. How do i bind the Bitmap to the Image in my LongListSelectors template. My data template is as below.</p>
  
  <pre><code>  &lt;phone:LongListSelector.ItemTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;Grid Margin="5,5,5,5" Background="{StaticResource PhoneAccentBrush}"&gt;
                              &lt;Grid VerticalAlignment="Center" HorizontalAlignment="Center"&gt;
                                  &lt;Image Height="70" Width="70"  Margin="10,0,0,0" Source="/Assets/Images/appimg.png"&gt;
                                  &lt;/Image&gt;
                              &lt;/Grid&gt;
                              &lt;StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center"&gt;        
                              &lt;TextBlock Margin="5,5,5,5" TextTrimming="WordEllipsis" TextWrapping="NoWrap" Text="{Binding appTitle}"&gt;&lt;/TextBlock&gt;
                              &lt;/StackPanel&gt;
                          &lt;/Grid&gt;
                      &lt;/DataTemplate&gt;
   &lt;/phone:LongListSelector.ItemTemplate&gt;
  </code></pre>
  
  <p>Currently in the template the icon path is hardcoded. Please provide some input on how to bind the bitmap to the image. </p>