question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Items disappear from the ListView when the user scrolls up/down

See original GitHub issue

.NET Core Version:

  • 3.0

Have you experienced this same bug with .NET Framework?:

  • No

Repro steps:

  1. Create a ListView in virtual mode with 1 million items (or use NET5 project from VirtualListView.zip).
  2. Add Application.SetHighDpiMode(HighDpiMode.SystemAware) line to Program.cs
  3. Start scrolling up/down

Actual behavior: Items disappear:

5290

Expected behavior: Items should be displayed

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dreddy-workcommented, Aug 10, 2021

Thanks @kirsan31 for the details. Removed regression tag and slated for next release.

1reaction
kirsan31commented, Aug 10, 2021

All a bit more complicated ( or simple )?

  1. Another prerequisite for reproduction is that the system’s DPI should be more than 100. On 100% DPI all work fine.
  2. If your make net4 app DPI aware:
<System.Windows.Forms.ApplicationConfigurationSection>
  <add key="DpiAwareness" value="true" />
</System.Windows.Forms.ApplicationConfigurationSection>

and change font of the app to system font like this:

public Form1()
{
	Font = SystemFonts.MessageBoxFont;
	InitializeComponent();
...
}

then this issue will repro even on net472:

https://user-images.githubusercontent.com/17767561/128871299-b3201c0a-19cb-4f48-9534-8c3cc9096a4d.mp4

So, strictly speaking this is not a regression, this is DPI scaling problem that exist even in net framework, but become more easy discoverable in .Net due to default font change.

@dreddy-work your can safely add this to area: HDPI 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

My listview items are disappearing while scrolling
I am using listview inside a fragment. In a row of listview I do changes in the values of the textview using a...
Read more >
ListView (or perhaps ScrollView) disappears after running ...
When navigating back to the ListView all items are invisible until I scroll the View up or down. The items seem to re-appear...
Read more >
A RecyclerView With Multiple View Type
Most of time ListView and RecyclerView are used to show uniform item view, ... Using RecyclerView is a better as it reuses cells...
Read more >
Flutter sliver list infinite scroll. In Flutter, slivers (not silver) are ...
I would now like my "underneath" placed SliverList to use some of the cut ... In this article, We are going to demonstrate...
Read more >
ScrollView
Never add a RecyclerView or ListView to a scroll view. Doing so results in poor user interface performance and a poor user experience....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found