title: WP8 Out of Memory error while loading Images
body: <p>I am working on Windows Phone 8 app.</p>
  
  <p>I am working on Coverflow feature, i am trying to load 600 items but it always shows <code>Out of Memory Error</code></p>
  
  <p>Code:</p>
  
  <pre><code>&lt;DataTemplate x:Key="DataTemplate1"&gt;
              &lt;Grid VerticalAlignment="Center" HorizontalAlignment="Center"&gt;
                  &lt;Grid.RowDefinitions&gt;
                      &lt;RowDefinition/&gt;
                  &lt;/Grid.RowDefinitions&gt;
                  &lt;Border Grid.Row="0" Height="400" Width="400" CornerRadius="30,30,30,30"&gt;
                      &lt;Border.Background&gt;
                          &lt;ImageBrush ImageSource="Images/sample.png" /&gt;
                      &lt;/Border.Background&gt;
                  &lt;/Border&gt;
                  &lt;Grid Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Top"&gt;
                      &lt;TextBlock HorizontalAlignment="Center" 
                                 VerticalAlignment="Center"
                                 Margin="5,20,5,5"
                                 Foreground="#000000"
                                 Text="{Binding Title}"/&gt;
                  &lt;/Grid&gt;
                  &lt;Grid Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Bottom"&gt;
                  &lt;TextBlock HorizontalAlignment="Center" 
                                 VerticalAlignment="Center"
                                 Margin="5,5,5,20"
                                 Foreground="#000000"
                                 Text="{Binding SubTitle}"/&gt;
                  &lt;/Grid&gt;
              &lt;/Grid&gt;
          &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>I have tried checking why its happening so,because each time it loads image with the below code </p>
  
  <pre><code>&lt;Border Grid.Row="0" Height="400" Width="400" CornerRadius="30,30,30,30"&gt;
                          &lt;Border.Background&gt;
                              &lt;ImageBrush ImageSource="Images/sample.png" /&gt;
                          &lt;/Border.Background&gt;
                      &lt;/Border&gt;
  </code></pre>
  
  <p>I tried removing <code>Width</code> and <code>Height</code> and it works but i want the image to bigger.</p>
  
  <p>How can i fix this ?</p>