Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] UWP Shell cannot host CollectionView/CarouselView #8814

Closed
samhouts opened this issue Dec 10, 2019 · 8 comments · Fixed by #13081
Closed

[Bug] UWP Shell cannot host CollectionView/CarouselView #8814

samhouts opened this issue Dec 10, 2019 · 8 comments · Fixed by #13081

Comments

@samhouts
Copy link
Member

Description

Steps to Reproduce

  1. Create new Shell template
  2. Add UWP project
  3. Add global::Xamarin.Forms.Forms.SetFlags("Shell_UWP_Experimental");
  4. Convert ListView to CollectionView
  5. Run project on UWP

Expected Behavior

CollectionView is displayed

Actual Behavior

CollectionView is missing

Basic Information

  • Version with issue: 4.3.0
  • Last known good version: none
  • IDE: VS 15.5 P1
  • Platform Target Frameworks:
    • UWP: 16299+

Reproduction Link

Repro.zip

@pauldipietro pauldipietro added this to New in Triage Dec 10, 2019
@kingces95 kingces95 moved this from New to Ready For Work in Triage Dec 18, 2019
@samhouts samhouts moved this from Ready For Work to Needs Estimate in Triage Dec 30, 2019
@samhouts samhouts added e/3 🕒 3 and removed s/unverified New report that has yet to be verified labels Jan 2, 2020
@samhouts samhouts moved this from Needs Estimate to Ready For Work in Triage Jan 3, 2020
@samhouts samhouts added this to To do in UWP Ready For Work Jan 3, 2020
@samhouts samhouts removed this from Ready For Work in Triage Jan 3, 2020
@samhouts samhouts added this to Backlog in CollectionView Jan 3, 2020
@samhouts samhouts added this to Backlog in CarouselView Jan 3, 2020
@samhouts samhouts added this to Backlog in Shell Jan 3, 2020
@leo-adm
Copy link

leo-adm commented Jan 22, 2020

When I resize the window, the collectionview gets loaded

@samhouts samhouts moved this from To do to To do (high priority) in UWP Ready For Work Feb 18, 2020
@PureWeen PureWeen moved this from Backlog to To Do UWP (blockers) in Shell Mar 2, 2020
@holecekp
Copy link

holecekp commented Jun 22, 2020

This is also very similar to #10977.

@samhouts samhouts moved this from Backlog to To do (blockers) in CarouselView Jul 13, 2020
@bmacombe
Copy link
Contributor

Wonder if #11394 will resolve this? I'll try to test it.

@bmacombe
Copy link
Contributor

@samhouts I've been trying to test this, but I think I need to build nugets and then use them against your repro project. But I've been at a loss to to figure out how to build the nugets locally. I've tried the .create-nuget.bat without success. I know there were instructions somewhere to create your own nugets, but I'm not finding them.

Could you point me in the right direction or suggest another way to test? I've tried @PureWeen s Sandbox, but I can't get the original repro to fail after I copy enough code into the sandbox to re-create, so I can't validate the fix.

Thanks!

@bmacombe
Copy link
Contributor

I can confirm this is still broken on 4.7.0.1179

@bmacombe
Copy link
Contributor

bmacombe commented Jul 29, 2020

on 4.8.0.1187-pre2 I get this though...tried a couple of times to be sure

image

update: this was just caused by the Windows Target not being 18362

@PureWeen
Copy link
Contributor

But I've been at a loss to to figure out how to build the nugets locally.

https://github.com/xamarin/Xamarin.Forms/wiki/How-to-Build-Xamarin.Forms-NuGet

@bmacombe
Copy link
Contributor

@PureWeen Thanks for that link, worked great...I'll add that to my XF toolbox!

#11394 Does appear to resolve this issue also.

Before
Before

After
After

@samhouts samhouts added the in-progress This issue has an associated pull request that may resolve it! label Jul 30, 2020
@samhouts samhouts added this to In Progress in .NET MAUI Backlog Jul 30, 2020
@samhouts samhouts moved this from To do-High impact to In progress in UWP Ready For Work Jul 30, 2020
@samhouts samhouts moved this from Backlog to In Progress in CollectionView Jul 30, 2020
@samhouts samhouts moved this from To do (blockers) to In Progress in CarouselView Jul 30, 2020
@samhouts samhouts moved this from To Do UWP (blockers) to In Progress in Shell Jul 30, 2020
@samhouts samhouts removed this from In Progress in .NET MAUI Backlog Aug 4, 2020
@samhouts samhouts added this to In Progress in vNext+1 (5.0.0) Aug 11, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@PureWeen PureWeen added this to To do in v5.0.1 via automation Nov 2, 2020
@PureWeen PureWeen removed this from In Progress in vNext+1 (5.0.0) Nov 2, 2020
@PureWeen PureWeen modified the milestones: 5.0.0, 5.0.1 Nov 2, 2020
@samhouts samhouts added this to In Progress in vNext+1 (5.0.0) Nov 2, 2020
@PureWeen PureWeen modified the milestones: 5.0.1, 5.0.0 Nov 4, 2020
@PureWeen PureWeen removed this from To do in v5.0.1 Nov 4, 2020
UWP Ready For Work automation moved this from In progress to Done Dec 13, 2020
CollectionView automation moved this from In Progress to Done Dec 13, 2020
CarouselView automation moved this from In Progress to Done Dec 13, 2020
Shell automation moved this from In Progress to Done Dec 13, 2020
vNext+1 (5.0.0) automation moved this from In Progress to Done Dec 13, 2020
rmarinho pushed a commit that referenced this issue Dec 13, 2020
…13081) fixes #8814

* Allow CollectionView on UWP to layout even if items are not loaded (fixes #8814)

* Fix rebase error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.