Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] CollectionView KeepLastItemInView ignored on initial load and reset #13675

Open
hartez opened this issue Feb 5, 2021 · 3 comments
Open

Comments

@hartez
Copy link
Contributor

hartez commented Feb 5, 2021

Description

A CollectionView with ItemsUpdatingScrollMode="KeepLastItemInView" will scroll to the last item as items are added individually, but on initial load or reset of the ObservableCollection, the CollectionView does not scroll the last item into view.

(This has been ported from #13231 so it can be tracked and addressed individually.)

Steps to Reproduce

  1. Download the repro project and update to 5.0.0.1931 (or later)
  2. Run the app.

Expected Behavior

Once the app has loaded the CollectionView items, the CollectionView will be scrolled (instantly, not animated) to display the last item.

CollectionView is scrolled to make the last item visible.

Actual Behavior

CollectionView scroll remains at the top.

Basic Information

Reproduction Link

The repro project can be found in issue 13231. Update the issue to the latest stable (5.0.0.1931) and run it.

Workaround

@hartez hartez added t/bug 🐛 s/unverified New report that has yet to be verified a/collectionview e/5 🕔 5 and removed s/unverified New report that has yet to be verified labels Feb 5, 2021
@samhouts samhouts added this to New in Triage Feb 5, 2021
@hartez hartez added this to Backlog in CollectionView via automation Feb 5, 2021
@hartez hartez removed this from New in Triage Feb 5, 2021
@hartez
Copy link
Contributor Author

hartez commented Feb 5, 2021

Issue #13547 is related.

@Tommigun1980
Copy link

Tommigun1980 commented Feb 5, 2021

Hi Hartez and and thanks for looking into this! Yeah #13547 details this exact problem, along with a very finicky “workaround”. It also details some other issues related to this.

@hartez hartez moved this from Review Backlog to Backlog in CollectionView Feb 8, 2021
@Tommigun1980
Copy link

Tommigun1980 commented Mar 2, 2021

This is so hard to work around, as it’s very very hard to scroll a collection view to the bottom as it loads.
Any chance ghis could get fixed?

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
CollectionView
  
Backlog
Development

No branches or pull requests

2 participants