Hello everyone, I have a ListView which ItemsSource is bound to an ObservableCollection. The ItemTemplate is a custom ViewCell, which contains a horizontal StackLayout in which I have an Entry and multiple Switches (the number is decided at runtime by the user) which are bound to an array of bools in the ViewModel. The user can add items to the ObservableCollection by pressing a button. I would like to also let the user decide to clear the ListView of its items and start over from another button but whenever i try to do this, the application goes into break mode due to a non specificated unhandled exception. I've tried to use objects.Clear () (objects is the ObservableCollection), to use a foreach to remove each of the objects one by one, to set the ListView's ItemsSource to null, but the result is always the same. What am i missing?
Thanks for the attention and for the eventual help,