-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] [UWP] CollectionView ItemsLayout not working when initially invisible #9079
Comments
the same problem. :'( IOS |
I've also noticed that the sample doesn't even launch on iOS when the CollectionView is initially invisible. |
t works for me to put CollectionView into the zero size container. |
I'm experiencing a similar issue when navigating away from the page and returning to it. The "IsVisible" property doesn't necessarily seem to affect it one way or the other. I tried @VelizarGremori solution and it seemed like when setting the row back to the "nonzero" row, my collectionview would still have a height of zero, even if I changed the HeightRequest explicitly or changed layout options to FillAndExpand. Any ideas on why this might be? |
Just wanted to +1 this and the related issues. I'm having to change the design of my app because CollectionView doesn't layout properly when it is made visible, and I can't find a reliable workaround. I hope your team will prioritize this set of issues. |
experiencing same issue: when set collectionview from invisible to visible state - it displays one column instead of 2 |
Got similar problem on Xamarin Forms 4.8 on iOS. I use CollectionView with GridItemsLayout (Span = 2) inside Expander (long infographic screen with expandable sections). |
Any chance this being fixed? it is opened since January 2020 and it is very annoying, requiring to change the design of my app. |
I'm guessing for a lot of these the solution is going to be the new cross platform UI framework, MAUI. |
Description
I'm trying to use a CollectionView in UWP with a vertical grid layout. This CollectionView, however, is revealed through a user action and is initially invisible (
IsVisible="False"
). When this happens, the ItemsLayout seems to be ignored, as the CollectionView displays its items as a vertical list.Steps to Reproduce
Expected Behavior
The items are arranged as a vertical grid with 3 columns.
Actual Behavior
The items are arranged as a vertical list
Basic Information
Screenshots
The headers refer to the initial visibility of the CollectionView.
IsVisible="False"
IsVisible="True"
Reproduction Link
UWPCollectionViewBug.zip
The text was updated successfully, but these errors were encountered: