unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.76k stars 706 forks source link

Data on a few of the `ListView` rows get blank #6263

Open ac2021-June opened 3 years ago

ac2021-June commented 3 years ago

Current behavior

All of a sudden, data present on the ListView rows goes blank.

Expected behavior

When we have data, the ListView items should not get blank. It gives users feeling of something is broken / data is not present.

How to reproduce it (as minimally and precisely as possible)

Issue occurs only after 4-5 minutes of going to different screens in the app. Initially the issue is not present, everything on the screen appears correctly. But when the user is on the application for 4-5 minutes, this issue begins to occur.

Workaround

None.

Environment

All environments.

Nuget Package:

Nuget Package Version(s):

Affected platform(s):

IDE: Enterprise edition

Relevant plugins:

Anything else we need to know?

Also, once the issue is present it keeps on appearing everywhere in the app. even where issue was not seen. Please refere to the issue https://github.com/unoplatform/uno/issues/6260 for more details of the UI elements arranged.

jeromelaban commented 3 years ago

Thanks for the report.

In order to help troubleshoot the issue, we'll need a simple reproduction project that clearly demonstrates the issue.

To create a minimal reproduction project:

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. We don't monitor discussions on closed issues thus please open a new GitHub issue if you need the team to revisit this matter.

renecnventive commented 3 years ago

Reopening with Repo link. Please reach out to Rene Charbonneau for info on downloading the attached file if need. https://nventive-my.sharepoint.com/:u:/p/rene_charbonneau/EWPutwbOk6NFm0SJfb12fD4Bv6eAPeEb1wCWhAEjjf1oWw?e=unmK8H

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. We don't monitor discussions on closed issues thus please open a new GitHub issue if you need the team to revisit this matter.

ac2021-June commented 3 years ago

Steps to reproduce alongwith the sample application shared on the shared folder.

baskren commented 2 years ago

FWIW, I am seeing this as well, quite consistently. Would be happy to privately share a project if it would be helpful.

baskren commented 2 years ago

Crazy: If I add the following to the class that is used for the cell template, the cell content appears (rather jankily). A pretty smelly work around.

        int redrawCount = 0;

        protected virtual void OnDataContextChanged(FrameworkElement sender, DataContextChangedEventArgs args)
        {
            try
            {
                redrawCount = 0;

               // code to update cell contents here

                P42.Utils.Timer.StartTimer(TimeSpan.FromSeconds(1), () => { InvalidateMeasure(); return redrawCount++ < 5; }) ;
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine($"");
            }
        }