In my application I generate CheckBoxes for each possible category (retrieved from a database) and the user can check any number that apply. I name the checkboxes "cbCategory[ID]" where ID is the ID of that category in the database.
I then need to generate some sort of collection class (as a property of my object class) to store the categoryID and a boolean value (checked/unchecked).
My question is, what would be the best type of collection class to use, and how would I go about binding it? What would the XAML and Code behind for the binding look like?
Hope this explains it well enough, thanks in advance for answers!