roubachof / Sharpnado.CollectionView

A performant list view supporting: grid, horizontal and vertical layout, drag and drop, and reveal animations.
The Unlicense
245 stars 30 forks source link

Changing ColumnCount after initially set #53

Closed mkrnic closed 2 years ago

mkrnic commented 2 years ago

After the horror that is Xamarin CollectionView (which you also wrote about), we decided to try Sharpnado.CollectionView.

All seems to be well at first glance, except for one thing: ColumnCount for grid layout.

Our app has a "number of columns" setting. We can set ColumnCount on SHCV in codebehind (it's not bindable) and it works initially. However, applying it again (if our user changes the setting) does nothing. SHCV remains rendered as it initially was. That's a bug, I guess.

Things I have tried as workarounds that failed:

Something that works:

That seems to be quite heavy, there's a noticeable delay while SHCV relayouts. It's not a big deal, though, because it's a setting that will rarely, if ever, be changed.

I'm wondering if there's a different (maybe easier?) way of making that work, at least until ColumnCount is made bindable, as per #44 ...

roubachof commented 2 years ago

Hey ! Could you try this pre-release and see if it works :)

Sharpnado.CollectionView.2.1.0.zip

mkrnic commented 2 years ago

Will try later and report back :)

I have another issue that I require assistance with... No changelog for the prerelease, so I don't know if that's also been taken care of, maybe.

roubachof commented 2 years ago

does this work for you ? It needs to go to release :)

mkrnic commented 2 years ago

Release the Kraken!

roubachof commented 2 years ago

will be fixed in 2.1