xamarin/Xamarin.Forms
[Bug] NullReferenceException is thrown when trying to use ViewCell.
开放
#8,434 创建于 2019年11月8日
a/listviewe/3 :clock3:help wantedinactivep/Androidt/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
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