Timeline for WPF MVVM - Pass data from child-view to parent
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 7, 2023 at 23:08 | comment | added | null | Why would you use a List<> then? Use an ObservableColelction in your model as well, so that changes to its list of records can be observed by viewmodels interested in them. | |
| Jul 26, 2023 at 16:13 | comment | added | Sam | Thank you for your comment. I think that this would not be possible, because my model should have a List<> of records and the ViewModel an ObservableCollection of RecordViewModels. When I pass a reference to the List<>, the ObservableCollection won't be updated automatically. | |
| Jul 25, 2023 at 21:07 | history | answered | null | CC BY-SA 4.0 |