xamarin/Xamarin.Forms

Binding compiler fails with indexers on Arrays

Offen

#4.524 geöffnet am 23.11.2018

 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C# (1.926 Forks)batch import
a/Xaml </>a/binding ⛓e/5 :clock5:help wantedin-progressinactivet/bug :bug:up-for-grabs

Repository-Metriken

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

Beschreibung

Description

I was creating the repro for #4516, and found out that this Xaml fail compilation.

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
		xmlns="http://xamarin.com/schemas/2014/forms"
		xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
		xmlns:local="using:Xamarin.Forms.Xaml.UnitTests"
		x:Class="Xamarin.Forms.Xaml.UnitTests.Gh4516"
		x:DataType="local:Gh4516VM">
	<Image x:Name="image" Source="{Binding Images[0]}" />
</ContentPage>

Expected Behavior

should compile, and works

Actual Behavior

throw a NRE at compilation

Basic Information

  • Version with issue: master

Contributor Guide