-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CollectionView - ItemsUpdatingScrollMode="KeepScrollOffset" does not work in Windows #22162
Comments
/similarissues |
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Hi @schlaman. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
I have a collection view with ItemTemplate={StaticResource MyTemplateSelector}
I have a dozen different templates to basically present the list of items as 'Widgets'.
I want to keep the scroll position the same even though new items are being added to my CollectionView.
In Windows if I am scrolled somewhere away from the beginning of the list then as I add an item, the list scrolls back to the beginning each time.
In iOS when I am scrolled away from the beginning of the list and I add an item, then the scrolling position is unchanged.
Steps to Reproduce
Create a .NET Maui Shell app and have a ContentView that contains a CollectionView and put enough items in it to allow for multiple pages of scrolling and also set ItemTemplate={StaticResource MyTemplateSelector}.
Also, set the CollectionView
ItemsUpdatingScrollMode="KeepScrollOffset"
As you scroll to somewhere in the middle of the list (off the screen) and then you add a new item, in Windows observe that as you add a new item that the scrolling position snaps to the top (it should have stayed put but it did not).
In iOS observe that the scrolling position does NOT move at all as you add a new item (CORRECT behavior).
Link to public reproduction project repository
No response
Version with bug
8.0.21 SR4.1
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
No response
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: