question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BindingList-BindableLayout not updating

See original GitHub issue

Description

When using a BindingList as an ItemSource of a BindableLayout, changes being made in the BindingList don’t get reflected in the BindableLayout.

v6.0.540

Steps to Reproduce

  1. Create a VerticalStackLayout with a BindableLayout
  2. Bind the ItemsSource of the BindableLayout to a BindingList
  3. Add items to the BindingList

Optionally you can do the same with an ObservableCollection. Then it works.

Link to public reproduction project repository

Github Repository

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows, I was not able test on other platforms

Affected platform versions

Tested on Windows 11 and Android 12.1 (Emulator)

Did you find any workaround?

Using an ObservableCollection instead is possible. In some cases a BindingList might be more convenient though.

Relevant log output

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
msftbot[bot]commented, Oct 13, 2022

We’ve moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

0reactions
XamlTestcommented, May 31, 2023

Verified this on Visual Studio Enterprise 17.7.0 Preview 1.0. This issue works on iOS 16.4, but some layout issues on Android 13.0-API33. MauiViewUpdateBug.zip

iOS: Rotate

Android:

  1. Starting the app in Portrait mode image
  2. Rotating into Landscape mode image
  3. Press the Button image
  4. Rotating back into Portrait mode image
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't update data bindings from object in Xamarin forms
1 Answer 1 ... According to Jason's opinion, you don't need to use BindableLayout and a DataTemplate if you only have a single...
Read more >
Bindable Layouts in Xamarin.Forms
Bindable layouts enable layout classes to generate their content by binding to a collection of items, with the option to set the appearance ......
Read more >
.Net Maui | List Binding | MVVM advance feature - YouTube
A bindable layout can be used when the data to be displayed ... Many properties and events from ListView are not present in...
Read more >
How to correctly use databinding with ListView and ...
In this post I'll show how to properly use the MVVM (Model - View - ViewModel) design pattern in Xamarin Forms with ListView...
Read more >
[Code]-Data Binding List within a List - appsloveworld.com
Forms display a data in list works in debug but not in release mode · Xamarin.Forms binding with data trigger - value not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found