Open davefxy opened 4 years ago
@davefxy If you resize the window does it then display?
If so might be related to #8814
Yes it does. Amazing workaround.
Sent from Mail for Windows 10
From: Brian Macomber Sent: Wednesday, September 2, 2020 3:45 PM To: xamarin/Xamarin.Forms Cc: Davefxy; Mention Subject: Re: [xamarin/Xamarin.Forms] [Bug] In a UWP AppShell app, using aCollectionView within a StackLayout along with a solitary label gives a blankscreen. (#12009)
@davefxy If you resize the window does it then display? If so might be related to #8814 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Why does having a button in stacklayout have the same effect as the window resize?
Sent from Mail for Windows 10
From: Brian Macomber Sent: Wednesday, September 2, 2020 3:45 PM To: xamarin/Xamarin.Forms Cc: Davefxy; Mention Subject: Re: [xamarin/Xamarin.Forms] [Bug] In a UWP AppShell app, using aCollectionView within a StackLayout along with a solitary label gives a blankscreen. (#12009)
@davefxy If you resize the window does it then display? If so might be related to #8814 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@davefxy It's a layout timing issue when the CollectionView's item source is set.
PR #11394 is in review to fix.
Why does having a button in stacklayout have the same effect as the window resize?
My guess is that it's an image button, and the image loading is async. So once the image has loaded, the button resizes and causes a re-layout; essentially the same thing that's happening when you resize the window.
This and #8814 do indeed appear to be the same problem. It's something specific to Shell, and possibly related to the timing things we fixed in #12017.
Description
In a UWP AppShell app, using a CollectionView within a StackLayout along with a solitary label gives a blank screen.
Steps to Reproduce
Basic Information
This was tested on a Windows PC using Visual Studio 2019 Version 16.7.2, Xamarin Forms v4.8.0.1364.
Screenshots
Reproduction Link
Workaround