I am trying to use a GridView
that will arrange it's child uniformly, much like the UnifromGrid
of Community Toolkit, but a virtualizing one.
The reason I cannot use the default Itemspanel
of GridView
is that I think it determines the size of all other cells by the 1st cell, look at this:
Notice the blank spaces on the right and also, Items having bigger dimensions are being clipped with the size of the 1st Item.
I tried using the `UniformGrid', but it's not virtualized and my app actually struggles sometimes and becomes very laggy when there are a lot of Items.
I also tried to extend VirtualizingPanel
to create a custom Panel
, but it's not possible for now.
Is there any thing that I can do now to solve this issue? Thanks.
What about using the AdaptiveGridView
control from the Windows Community Toolkit? It will allow you to resize the items automatically based on the available width. However, making the items exactly square would be a challenge, as it changes the width with how the window expands.