How to update multiple collections of different viewmodels in .NET MAUI?
Hello everyone,
I‘m currently working on a .NET MAUI project where I have a SQLite database which stores a bunch of persons. Now I have 3 different pages with 3 different viewmodels and they all need this list of person for a different reason. Therefore I have a ObservableCollection<Person> in each viewmodel. If I now access the database with viewmodel 1 it’s easy to update the collection of viewmodel 1 but I have no clue how to update the other 2 collection of viewmodel 2 and 3 so that they are always up to date.
Any tipps or lecture where I can learn how to update them all at ones?
Posted Oct 9, 2023, 8:10 PM UTC
13