-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CollectionView does not update when changing ItemsLayout #7747
Comments
The same is true for ListView, btw. After calling OnPropertyChanged(nameof(OverallRecords), in the following case
This cost me a good five hours to debug, and then I find this existing issue. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
FWIW: I haven't looked at what Collection/ListView issues have been closed in the past two months, but initially there were MANY issues that came down to "Collection/ListView does not correctly update its layout when it should". This sounds like yet another one. Interestingly, programmatically forcing a layout does NOT (or at least didn't at the time) fix any of those. I infer that certain information is cached when the view is first built, and not correctly re-calculated in later layout cycles. |
Description
I have a CollectionView with several items and I want to make a 2 column layout on wide screens and a 1 column layout on tall screens.
I tried setting a GridItemsLayout and changing the Span, but that did not work and then I tried changing the entire ItemsLayout, but still no updates in the app.
Restarting the app works, so this is just the result of changing at runtime.
Steps to Reproduce
Add a CollectionView with items, and then say write this code to toggle the layout on page size changes:
Version with bug
6.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
All
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: