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

[Bug] CollectionView ItemsUpdatingScrollMode=KeepLastItemInView not working on UWP #9127

Open
Estevete opened this issue Jan 8, 2020 · 8 comments

Comments

@Estevete
Copy link

Estevete commented Jan 8, 2020

Description

ItemsUpdatingScrollMode=KeepLastItemInView seems to not work on UWP but works fine on android & iOS.

Steps to Reproduce

  1. Create CollectionView and a button to add items into it
  2. Run on UWP
  3. Tap on add until items reach bottom of collection view
  4. Observe that new items aren't scrolled to automatically.

Expected Behavior

Items scrolled to if added on end.

Actual Behavior

Items are added but collectionview isn't scrolled automatically.

Basic Information

  • Version with issue: 4.4.0.991265
  • Last known good version: Doesn't work on 4.3 either
  • IDE: Visual Studio 2019 16.4.2
  • Platform Target Frameworks:
    • UWP: 18362
  • Android Support Library Version:
  • Nuget Packages: No unusual ones
  • Affected Devices: Windows PC
@Estevete Estevete added s/unverified New report that has yet to be verified t/bug 🐛 labels Jan 8, 2020
@hartez hartez added p/UWP and removed s/unverified New report that has yet to be verified labels Jan 8, 2020
@hartez hartez added the e/5 🕔 5 label Jan 8, 2020
@yurii-harkusha
Copy link

Hi, I see the same for IOS. Please fix it.

@Estevete
Copy link
Author

Estevete commented Jan 9, 2020

#7788

Hi, I see the same for IOS. Please fix it.

@edmlbox
Copy link

edmlbox commented May 15, 2020

still not working

@ederbond
Copy link
Contributor

ederbond commented Jun 3, 2020

Still not working on iOS @davidortinau, @pauldipietro @rmarinho

@tarunagrawal1990
Copy link

Still not working on UWP. XF version - 4.7.0.1080.
Any update on this issue

@jamsoft
Copy link

jamsoft commented May 11, 2021

Hmm ... this is still scrolling to the added items on iOS as well (XF 5.0.0.2012). A CarouselView, do they share any parts of their renderer? There is an old closed issue for this on the CarouselView, but it was apparently fixed and merged.

<CarouselView Margin="-1,-1,0,0"
                          ItemTemplate="{StaticResource MySectionDataTemplateSelector}"
                          ItemsLayout="VerticalList"
                          ItemsSource="{Binding Sections}"
                          ItemsUpdatingScrollMode="KeepItemsInView"
                          VerticalOptions="FillAndExpand" />

Possibly a regression? This works as expected on Android.

@burrowj
Copy link

burrowj commented May 29, 2021

This is not working for me either on IOS
Xamarin.Forms Version="5.0.0.2012"

@andersonvieiragomeslopes

Description

ItemsUpdatingScrollMode=KeepLastItemInView seems to not work on UWP but works fine on android & iOS.

Steps to Reproduce

  1. Create CollectionView and a button to add items into it
  2. Run on UWP
  3. Tap on add until items reach bottom of collection view
  4. Observe that new items aren't scrolled to automatically.

Expected Behavior

Items scrolled to if added on end.

Actual Behavior

Items are added but collectionview isn't scrolled automatically.

Basic Information

  • Version with issue: 4.4.0.991265

  • Last known good version: Doesn't work on 4.3 either

  • IDE: Visual Studio 2019 16.4.2

  • Platform Target Frameworks:

    • UWP: 18362
  • Android Support Library Version:

  • Nuget Packages: No unusual ones

  • Affected Devices: Windows PC

I solved this problem now in maui, the same solution also applies to xamarin.

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

No branches or pull requests

10 participants