OYIon / LiveSharp

Public repository for the LiveSharp project
96 stars 4 forks source link

[Xamarin] Binding Count property not found on ObservableRangeCollection #89

Closed YZahringer closed 4 years ago

YZahringer commented 4 years ago

Description

I get an error on binding to the Count property of MvvmHelpers.ObservableRangeCollection:

Binding: 'Count' property not found on 'MvvmHelpers.ObservableRangeCollection`1[System.String]', target property: 'Xamarin.Forms.Label.Text'

I make binding to a Label.Text and the label is not displayed. If I remove the LiveSharp package reference from the project, the label is displayed and binding works. I understand that LiveSharp may have problems on some views, but it should not alter the rendering of the application in my opinion.

No error when I use System.Collections.ObjectModel.ObservableCollection.

Basic Information

Reproduction Link

https://github.com/MADSENSE/Madsense.XamarinForms.Sample/tree/livesharp-observableRangeCollection

ionoy commented 4 years ago

Sorry for the late reply! The issue will be fixed in the next update, which will be published this week.

ionoy commented 4 years ago

@YZahringer new version should be published by now

YZahringer commented 4 years ago

@ionoy I confirm, I checked on multiple apps without any problem. Thank you 👍