I suspect that INotifyPropertyChanged is overkill for what I would like to achieve.
I need:
- to display a list of strings in a ListBox (the 5th column in the attached picture that is not working yet)
- to allow the user to edit each ListBox Item and set the status of the contained string (Accepted/Rejected) through the associated CheckBox
- when the button "Confirm" is clicked, to get access to the ListBox Item strings and the associated Checkbox to save to a database the strings that have "Accepted" status
The ListBox (5th column) is defined as follows:
C#
Questions:
-
Do I need InotiftPropertyChanged to read the edited strings displayed by the ListBox when the Button "Confirm" is clicked??
-
Do I need to define the set of strings as a List
or as an "ObservableCollection "??
Thank you in advance


Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 8, 2022, 10:10 AM EST
Maura Monville43 reputationPosted Mar 8, 2022, 10:36 AM EST