xamarin/Xamarin.Forms
[Bug] NullReferenceException is thrown when trying to use ViewCell.
Ouverte
#8 434 ouverte le 8 nov. 2019
a/listviewe/3 :clock3:help wantedinactivep/Androidt/bug :bug:up-for-grabs
Métriques du dépôt
- Stars
- (5 644 étoiles)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
Description
We need to visualize a Xamarin.Forms.Cell inside our Xamarin.Android and Xamarin.iOS controls. We are doing this by creating the Cell on demand and setting its Parent property when the native controls request item. Then we wrap that cell in a native component that can handle it and pass it to the native controls. However, when our customers try to set the FlowDirection property to RightToLeft a NullReferenceException is thrown.
There is no exception when LeftToRight is used.
Steps to Reproduce
- Run the attached project
Expected Behavior
The custom control should be visualized
Actual Behavior
A NRE is thrown
Basic Information
- Version with issue:
- IDE: Visual Studio Professional 2019 Preview Version 16.4.0 Preview 3.0
- Platform Target Frameworks:
- iOS: 13.8.1.17
- Android: 10.1.0.29