Xamarin.forms: [Bug] [CollectionView] [UWP] CollectionView shows empty items when DataTemplateSelector is used on UWP

Created on 17 Jul 2019  路  6Comments  路  Source: xamarin/Xamarin.Forms

Description

CollectionView shows empty items when DataTemplateSelector is used. Happens only on UWP

Steps to Reproduce

  1. Run sample

Expected Behavior

CollectionView shows views defined by templates returned by DataTemplateSelector

Actual Behavior

CollectionView shows empty items

Basic Information

  • Version with issue: 4.1
  • Last known good version: None
  • IDE: VS2017
  • Platform Target Frameworks:

    • UWP: 17134

Screenshots

obraz

Reproduction Link

CollectionViewRepro.zip

collectionview UWP bug

All 6 comments

/cc @hartez

Thanks for the repro sample. I am able to reproduce the problem. Some details:

  • The problem is reproduced in UWP. I have tried with Xamarin.Forms 4.x (4.0, 4.1 and 4.2 Preview).
  • Using one of the templates directly works as expected.
  • The OnSelectTemplate method from the DataTemplateSelector is not called on UWP!.

@jsuarezruiz Thanks for checking, yes i noticed OnSelectTemplate is not called at all.
Btw, a/listview label is wrong. It should be a/collectionvview

Well, I wouldn't exactly call it a "bug", so much as a "thing we haven't implemented yet".

CollectionView Feature Progress

Okay, it's in progress: #6918

@hartez Thanks!

Was this page helpful?
0 / 5 - 0 ratings