dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

[Windows] ListView ScrollTo Method Throws NullReferenceException #26345

Open nivetha-nagalingam opened 16 hours ago

nivetha-nagalingam commented 16 hours ago

Description

When using ListView's ScrollTo method with a custom List implementation that implements INotifyCollectionChanged, a NullReferenceException occurs in the ListViewRenderer on Windows.

Steps to Reproduce

Expected Behavior:

Actual Behavior:

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.19041.0

Did you find any workaround?

No response

Relevant log output

similar-issues-ai[bot] commented 16 hours ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

ninachen03 commented 6 hours ago

Could you provide a sample project for us to investigate it further? Looking forward to your reply!

nivetha-nagalingam commented 3 hours ago

Here, I have attached the project file for your investigation.Issue3788ListView.zip And also Please refer to the file attached in the description for further details.