Skip to content

List goes blank after reset event #81

@nielsenko

Description

@nielsenko

When an item source raises a CollectionChanged event with action NotifyCollectionChangedAction.Reset, then _dataSource is simply cleared.

case NotifyCollectionChangedAction.Reset:
  _dataSource.Clear();
  parentView.GetRecycledViewPool().Clear();
  NotifyDataSetChanged();
  break;

Hence the list view goes blank, instead of actually re-evaluating the ItemsSource, at least for me.

Platform used during testing

  • OS: Android
  • Device: Nexus 5x, Honeywell EDA51
  • Sdk version: Android SDK 21+
  • Xamarin.Forms: 4.1.0-sr3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions