Windows phone 8.1 Implement virtualization for Custom variable sized Gridview

前端 未结 2 465
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 05:17

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

相关标签:
2条回答
  • 2020-12-22 06:12

    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

    0 讨论(0)
  • 2020-12-22 06:13

    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.

    0 讨论(0)
提交回复
热议问题