xamarin / Xamarin.Forms

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

[Bug] [UWP] CollectionView with header and footer displays only white page until resize #13981

Open SuNNjek opened 3 years ago

SuNNjek commented 3 years ago

Description

When a page has a horizontal CollectionView with a header and a footer the entire page content is white until the window gets resized. I tried this with a couple of Xamarin.Forms versions and this only seems to happen on versions >=5.0 Might be related to #11732, but my issue only starts appearing on 5.0, 4.8 works as expected.

Steps to Reproduce

  1. Run the attached project on UWP
  2. The page is completely white
  3. Resize the window
  4. Page content is displayed

Expected Behavior

The page should show up immediately and not show a white screen

Actual Behavior

The page doesn't render until the window is resized

Basic Information

Environment

Show/Hide Visual Studio info ``` Microsoft Visual Studio Professional 2019 Version 16.8.6 VisualStudio.16.Release/16.8.6+31019.35 Microsoft .NET Framework Version 4.8.04084 Installierte Version: Professional Visual C++ 2019 00435-30013-71428-AA082 Microsoft Visual C++ 2019 ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools Allgemeine Azure-Tools 1.10 Bietet allgemeine Dienste für die Verwendung durch Azure Mobile Services und Microsoft Azure-Tools. ASA Service Provider 1.0 ASP.NET and Web Tools 2019 16.8.560.26713 ASP.NET and Web Tools 2019 ASP.NET Core Razor Language Services 16.1.0.2052803+84e121f1403378489b842e1797df2f3f5a49ac3c Provides languages services for ASP.NET Core Razor. ASP.NET Web Frameworks and Tools 2019 16.8.560.26713 Weitere Informationen finden Sie unter https://www.asp.net/. Azure App Service-Tools v3.0.0 16.8.560.26713 Azure App Service-Tools v3.0.0 Azure Data Lake Node 1.0 This package contains the Data Lake integration nodes for Server Explorer. Azure Data Lake Tools for Visual Studio 2.6.3000.0 Microsoft Azure Data Lake Tools for Visual Studio Azure Functions and Web Jobs Tools 16.8.560.26713 Azure Functions and Web Jobs Tools Azure Stream Analytics Tools for Visual Studio 2.6.3000.0 Microsoft Azure Stream Analytics Tools for Visual Studio C#-Tools 3.8.0-5.20604.10+9ed4b774d20940880de8df1ca8b07508aa01c8cd C#-Komponenten, die in der IDE verwendet werden. Abhängig von Ihrem Projekttyp und den zugehörigen Einstellungen kann eine andere Version des Compilers verwendet werden. Extensibility Message Bus 1.2.6 (master@34d6af2) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration. File Nesting 2.6.85 Automatically nest files based on file name and enables developers to nest and unnest any file manually ILSpy.AddIn 1.0 Integration of the ILSpy Decompiler into Visual Studio. IntelliCode-Erweiterung 1.0 Detaillierte Informationen zur IntelliCode Visual Studio-Erweiterung JetBrains ReSharper 2020.3.3 Build 203.0.20210128.162058 JetBrains ReSharper package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper. Copyright © 2021 JetBrains, Inc. Microsoft Azure-Tools 2.9 Microsoft Azure-Tools für Microsoft Visual Studio 2019 – v2.9.30924.1 Microsoft Azure HDInsight Azure Node 2.6.3000.0 HDInsight Node under Azure Node Microsoft Azure Hive Query Language Service 2.6.3000.0 Language service for Hive query Microsoft Azure Stream Analytics Language Service 2.6.3000.0 Language service for Azure Stream Analytics Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics Node under Azure Node Microsoft Continuous Delivery Tools für Visual Studio 0.4 Die Konfiguration von Azure DevOps-Pipelines von der Visual Studio-IDE aus wird vereinfacht. Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers Microsoft Visual C++-Assistenten 1.0 Microsoft Visual C++-Assistenten Microsoft Visual Studio-Tools für Container 1.1 Jetzt können Sie Ihre ASP.NET Core-Anwendung in der Zielumgebung entwickeln, ausführen und überprüfen. Drücken Sie F5, um die Anwendung direkt in einem Container mit Debugfunktionen auszuführen, oder STRG+F5 zum Bearbeiten und Aktualisieren Ihrer Anwendung, ohne den Container erneut erstellen zu müssen. Mono Debugging for Visual Studio 16.8.43 (00471f8) Support for debugging Mono processes with Visual Studio. Node.js-Tools 1.5.20902.1 Commit Hash:b474efcb6f92db52a8f8e2e6a8cb9648476885cc Fügt Unterstützung für das Entwickeln und Debuggen von Node.js-Apps in Visual Studio hinzu NuGet-Paket-Manager 5.8.1 NuGet-Paket-Manager in Visual Studio. Weitere Informationen zu NuGet finden Sie unter https://docs.nuget.org/. ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info SQL Server Data Tools 16.0.62102.01130 Microsoft SQL Server Data Tools Syntax Visualizer 1.0 An extension for visualizing Roslyn SyntaxTrees. Test Adapter for Boost.Test 1.0 Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory. Testadapter für Google Test 1.0 Ermöglicht die Verwendung von Visual Studio-Testtools mit Komponententests, die für Google Test geschrieben wurden. Die Nutzungsbedingungen und Drittanbieterhinweise stehen im Installationsverzeichnis der Erweiterung zur Verfügung. ToolWindowHostedEditor 1.0 Hosting json editor into a tool window TypeScript-Tools 16.0.21016.2001 TypeScript-Tools für Microsoft Visual Studio VC-Paket für Microsoft Visual Studio 1.0 VC-Paket für Microsoft Visual Studio Visual Basic-Tools 3.8.0-5.20604.10+9ed4b774d20940880de8df1ca8b07508aa01c8cd Visual Basic-Komponenten, die in der IDE verwendet werden. Abhängig von Ihrem Projekttyp und den zugehörigen Einstellungen kann eine andere Version des Compilers verwendet werden. Visual C++ für plattformübergreifende Mobile-Entwicklung (Android) 16.0.30608.117 Visual C++ für plattformübergreifende Mobile-Entwicklung (Android) Visual F# Tools 16.8.0-beta.20507.4+da6be68280c89131cdba2045525b80890401defd Microsoft Visual F# Tools Visual Studio-Tools für CMake 1.0 Visual Studio-Tools für CMake Visual Studio-Tools für Container 1.0 Visual Studio-Tools für Container Visual Studio Code-Debugadapter-Hostpaket 1.0 Interopebene zum Hosten der Visual Studio Code-Adapter in Visual Studio Visual Studio Container Tools Extensions 1.0 Hiermit werden Container in Visual Studio angezeigt, verwaltet und diagnostiziert. VisualStudio.DeviceLog 1.0 Informationen zum Paket VisualStudio.Foo 1.0 Information about my package VisualStudio.Mac 1.0 Mac Extension for Visual Studio Xamarin 16.8.000.262 (d16-8@4d60f9c) Visual Studio-Erweiterung, um Entwicklung für Xamarin.iOS und Xamarin.Android zu ermöglichen. Xamarin Designer 16.8.0.507 (remotes/origin/d16-8@e87b24884) Visual Studio-Erweiterung zum Aktivieren der Xamarin Designer-Tools in Visual Studio. Xamarin Templates 16.8.112 (86385a3) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms. Xamarin.Android SDK 11.1.0.26 (d16-8/a36ce73) Xamarin.Android Reference Assemblies and MSBuild support. Mono: 5e9cb6d Java.Interop: xamarin/java.interop/d16-8@79d9533 ProGuard: Guardsquare/proguard/proguard6.2.2@ebe9000 SQLite: xamarin/sqlite/3.32.1@1a3276b Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-8@2fb1cbc Xamarin.iOS and Xamarin.Mac SDK 14.10.0.4 (5a05865f6) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support. ```

Build Logs

Screenshots

Before resize: grafik

After resize: grafik

Reproduction Link

UWPCollectionViewBug.zip

Workaround

holecekp commented 2 years ago

I have the same problem. If there is anything visible in the CollectionView.Header, only blank page is displayed on UWP.

kyurkchyan commented 2 years ago

Having the same problem. Setting footer in UWP renders the CollectionView blank

drossoft commented 2 years ago

Same problem (version 5.0.0.2337). Setting content in CollectionView.Header or CollectionView.Footer causes random blank page. Sometimes it displays correctly, sometimes the whole page is blank, and sometimes it displays all controls on the page except the CollectionView.

drossoft commented 2 years ago

Struggling to understand this, I can't get to understand this random rendering behavior, is there any workaround please?

chaoyebugao commented 2 years ago

Same problem... All blank exception navigation bar when I added the footer. So weird...