I have implemented custom itempanel for gridview to support variable item height using this link posted by JerryNixon.My Custom panel supports 3 different sized template(dep
Finally we implemented virtualized custom grdiview by referring to the code posted in this link. Code given in the link is for virtualizing horizontal gridview. I changed the code a bit to change it to vertical gridview. Many thanks to the person who posted the code. It helped a lot
To overcome out of memory exception just reduce the pixel width of the images and you will save the memory so that more items can be loaded in the page.
<Image Stretch="Uniform" Width="150" Height="170">
<Image.Source>
<BitmapImage UriSource="{Binding MainImage}" DecodePixelWidth="400"/>
</Image.Source>
</Image>
The above code does the trick.