locked
Wrap Panel layout with fixed column count and limited Rows RRS feed

  • General discussion

  • Hi,

    has someone an idea to achieve the following :

    The Panel should have a fixed column count and the row count should fill the available height.
    If there is not enough space for all items those items should not be displayed instead the last item should
    be a 'more' item ( on tap it should navigate to different page).

    I have played with different ideas:

    - Create a custom panel layout like Fixed Column Wrap Panel but in this case the ui elements that are not necessary exists already. I think the problem with this is that all images (which comes from a webserver) will be downloaded also when there are not needed.

    - Listen to the panel 'SizeChanged' event get the height of the panel and calculate the item count that will fit in the panel and create a new collection of items in the viewmodel. In this case the ViewModel depends on the view . And it sounds very wrong to me.

    Maybe someone has another or better idea ?

    Many thanks.

    Friday, January 10, 2014 10:38 AM