Search code examples
windows-phone-7pivotitem

pivot with more than 100 pivotItems


I have book reader application and initially we thought using pivot with multiple pivot items which will be easy and will give rich look and feel.

But looks like it has its own limitations? No mater how I load pivot items ( Databinding Vs xml, runtime in code ). It gives out of memory exception if items are more then 100.

Any other alternative to this solution? Is there better control available which can support multiple pages ( 1000 pages atleast)


Solution

  • Pivot control design guidelines for Windows Phone says:

    Apps should minimize the number of pivot pages (four pages or fewer). Users can become lost if they jump from pivot page to pivot page. Use Pivot controls sparingly and limit the use of pivot pages to scenarios where it’s appropriate for the experience.

    The pivot is not supposed to be used for your problem.
    Basically, pivot should not have more that 6-7 pivot item.

    You need to use another way, for ex. LongListSelector or a ListBox