This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] RefreshView with CollectionView child cannot contain GridItemsLayout with Span greater than 1 in combination with EmptyView on UWP #11794
Labels
a/collectionview
a/refreshview 🔄
e/3 🕒
3
in-progress
This issue has an associated pull request that may resolve it!
p/UWP
t/bug 🐛
Milestone
Description
Creating a RefreshView that has a CollectionView that has both CollectionView.ItemsLayout set vertical with a span of greater than one AND CollectionView.EmptyView causes a crash in the UWP environment. No crash in Android. Haven't tried in iOS.
Steps to Reproduce
The following XAML produces the error when the CollectionView is wired up to an Observable Collection. Comment out either CollectionView.ItemsLayout or CollectionView.EmptyView and the issue goes away.
<RefreshView> <CollectionView x:Name="testCollectionView"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="3" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate> <Frame> <Label Text="{Binding .}" /> </Frame> </DataTemplate> </CollectionView.ItemTemplate> <CollectionView.EmptyView> <StackLayout IsVisible="{Binding IsEmpty}"> <Label Text="Welcome to crashtown" /> </StackLayout> </CollectionView.EmptyView> </CollectionView> </RefreshView>
Expected Behavior
CollectionView Renders successfully
Actual Behavior
Application crash
Basic Information
Screenshots
N/A
Reproduction Link
N/A
Workaround
N/A
The text was updated successfully, but these errors were encountered: