Welcome to the .NET MAUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the .NET MAUI, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
if the collection which is bound to ItemsSource is updated outside of constructor, the updates are not processed to UI.
Only the Models which are created and added to the list during constructor of the viewmodel works.
If models are added to list after constructor for example during events, the UI is not updating.
I've attached a demo project where some models are added to collection during constructor and some are added during timer every 3 seconds to demonstrate the issue.
The models from timer are not shown in UI. Calling PropertyChange for the collection didn't help.
Edit: I've figured out that it works if I change my collection from
ObservableCollection<MyModel> MyModels;
to
ObservableCollection<object> MyModels;
it works.
Because ChangeCollection in SfRotator.cs checks
if (this.ItemsSource is ObservableCollection<object>
Thanks in advance!