xamarin/Xamarin.Forms

[Bug] NullReferenceException is thrown when trying to use ViewCell.

Offen

#8.434 geöffnet am 08.11.2019

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.926 Forks)batch import
a/listviewe/3 :clock3:help wantedinactivep/Androidt/bug :bug:up-for-grabs

Repository-Metriken

Stars
 (5.644 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

  1. 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

Reproduction Link

App9.zip

Contributor Guide