Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] Binding Array Element Directly to Label Text Stopped Working After v 4.1.0.778454 #8479

Open
@rmgalante

Description

@rmgalante

Description

I use ObservableCollection with view models that implement BindableBase. Sometimes I need to bind a collection element directly to a label text property, rather than use a repeatable view such as a ListView.

I noticed problems with my app in Android, iOS and UWP after I upgraded to any Xamarin Forms version after 4.1.0.778454. Binding array elements directly stopped working.

Steps to Reproduce

  1. Use the attached solution to run the app. It is using XF v 4.1.0.778454.
  2. You will see three labels render text.
  3. Change the package to any version greater than 4.1.0.778454.
  4. The labels do not render.

Expected Behavior

The labels should render.

Actual Behavior

The labels do not render.

Basic Information

I'm stuck at version 4.1.0.778454 at the moment.

  • Version with issue: 4.2.0.709249+

  • Last known good version: 4.1.0.778454

  • IDE: VS 2019

  • Platform Target Frameworks:

    • iOS: 9.0+
    • Android: 9.0+
    • UWP: 16299+
  • Android Support Library Version:

  • Nuget Packages: Microsoft.NETCore.UniversalWindowsPlatform 6.0.12, NETStandard.Library 2.0.3, Prism.Unity.Forms 7.2.0.1367, Android Support Libraries v 28.0.0.3

  • Affected Devices: all devices affected

Screenshots

Reproduction Link

DemoBugWhenBindingArrayElement.zip

Metadata

Metadata

Labels

4.2.0regression on 4.2.0Corea/binding ⛓e/5 🕔5help wantedWe welcome community contributions to any issue, but these might be a good place to start!i/regressionin-progressThis issue has an associated pull request that may resolve it!t/bug 🐛up-for-grabsWe welcome community contributions to any issue, but these might be a good place to start!

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions