Open Jearom opened 3 years ago
@hartez I tested this on pre5 and the attached repro is now throwing an exception
@hartez Probably, cause of the media element removed from XF on 5.0.0 . You can switch to CommunityToolkit version. It is also exists in test project. But the main problem is not the media element ofc.
Thanks.
Doesn't this effectively break virtualisation, making it impossible to make an efficient chat app with the CollectionView? I was planning on adding proper virtualisation next (as I'm currently just loading and adding all messages at once), but should I wait until this is fixed? Ie was this bug ever confirmed, and if so, is there an ETA on a fix? Virtualisation is kinda the main reason to use a CollectionView so if it doesn't work it is imho a very high priority fix.
Thanks.
Edit: Found issue https://github.com/xamarin/Xamarin.Forms/issues/13045 which seems to be this exact same issue, but reported for Android and with a repro project that doesn't require modifications?
Description
Hi All, I am creating a page like chat application except i need to wait Media Element has to finished before I insert another message to list. When new item added to collectionview with datatemplateselector all visible items initialized again. So another media element started on background. Just put a debug on datatemplateselector , you will see. Ofc this is not releated with media element but it is easy to discover with it.
Steps to Reproduce
Expected Behavior
Visible item has to be initialized one time.
Actual Behavior
Initialized multiple times.
Basic Information
Environment
Reproduction Link
Sample Project mediainsidecollection.zip
Workaround
I will swithch collectionview to Listview