This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] In a UWP AppShell app, using a CollectionView within a StackLayout along with a solitary label gives a blank screen. #12009
Labels
a/collectionview
a/layout
in-progress
This issue has an associated pull request that may resolve it!
p/UWP
t/bug 🐛
Projects
Milestone
Comments
davefxy
changed the title
[Bug] In a UWP AppShell app, using a CollectionView within a StackLayout along with a label gives a blank content page.
[Bug] In a UWP AppShell app, using a CollectionView within a StackLayout along with a solitary label in the gives a blank screen.
Sep 2, 2020
davefxy
changed the title
[Bug] In a UWP AppShell app, using a CollectionView within a StackLayout along with a solitary label in the gives a blank screen.
[Bug] In a UWP AppShell app, using a CollectionView within a StackLayout along with a solitary label gives a blank screen.
Sep 2, 2020
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.
|
2 tasks
samhouts
added
the
in-progress
This issue has an associated pull request that may resolve it!
label
Sep 3, 2020
hartez
added
a/collectionview
a/layout
p/UWP
and removed
s/unverified
New report that has yet to be verified
labels
Sep 3, 2020
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
a/collectionview
a/layout
in-progress
This issue has an associated pull request that may resolve it!
p/UWP
t/bug 🐛
Description
In a UWP AppShell app, using a CollectionView within a StackLayout along with a solitary label gives a blank screen.
Steps to Reproduce
<StackLayout> <!--<Button Text="Test Button" ImageSource="bear.png" HorizontalOptions="Center" BackgroundColor="Red"/>--> <Label Text="Test" HorizontalOptions="Center" /> <CollectionView Margin="20" ItemsSource="{x:Static data:CatData.Cats}" ItemTemplate="{StaticResource AnimalTemplate}" SelectionMode="Single" SelectionChanged="OnCollectionViewSelectionChanged" /> </StackLayout>
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
The text was updated successfully, but these errors were encountered: