FlipView items in memory RRS feed

  • Question

  • Hello,

    I have noticed that the FlipView control will keep 3 of its Items in memory at one time. It keeps in memory the item that is currently selected, as well as the Item directly to the left and to the right of the selected item.

    This has some unwanted side-effects when jumping to different flipviewitems. And they are especially noticeable on a Surface RT device (because it's so slow).

    Is there some way to keep all the flipview items in memory so that they are not loaded and unloaded as you swipe through it? Or maybe a way to cache the flipview items as they are loaded?

    Thank you for any help.

    Friday, September 13, 2013 5:22 PM


  • This question was answered on Stackoverflow: http://stackoverflow.com/a/18808138/329928

    The solution is to replace the FlipView.ItemsPanel with a StackPanel instead of a VirtualizingStackPanel.

    Of course, this means that all of your FlipView items will be loaded all at once, which could be bad if you have a lot of FlipView items. I personally will only have a maximum of 5 items.

    Hope this can help someone.

    • Marked as answer by Chris Leyva Sunday, September 15, 2013 2:15 AM
    Sunday, September 15, 2013 2:15 AM