xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.88k forks source link

Xamarin Forms CollectionView UWP #9102

Open vsfeedback opened 4 years ago

vsfeedback commented 4 years ago

This issue has been moved from a ticket on Developer Community.


Problem: Grid ItemLayout is lost when switching views.

How to reproduce: Create new solution In VS2019 (16.4.2) for Xamarin Forms 4.4 selecting Master-Detail and including UWP project. In ItemsPage.xaml: replace ListView with the new CollectionView and set grid layout vertical with span = 3. Verify that Windows 10 (latest edition) shows the items in 3 columns. Now Select Menu = About Now Select Menu = Browse to return to the items page display

Expect: items to be shown in a grid of 3 columns What you get: Vertical list of 1 column!

Further: if you resize the window, display snaps back to grid of 3 columns

Further: If the CollectionView is embedded within another control (e.g. grid) then resizing the main window has no effect since the CollectionView is frozen in size and does not resize with the container. You can see this as the background color is fixed

Further: If you set the CollectionView to either list orientation, then the layout is correctly maintained.

Attached: VS2019 solution which shows the problem.


Original Comments

Visual Studio Feedback System on 1/5/2020, 07:32 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

hartez commented 4 years ago

_9102 Repro.zip

shudson302 commented 4 years ago

Any updates on the expected release timeframe for a fix?