In WPF I have a collection of bool? values and I want to bind each of these to a separate checkbox programmatically. I want the bindings to be TwoWay so that changing the va
Change your List
to an ObservableCollection
. A List does not raise the change notifications that WPF needs to update the UI. An ObservableCollection does. This handles the case where the list entry is changed and the CheckBox needs to update accordingly.
In the other direction, it works for me even with a List
-- i.e. toggling the checkbox modifies the value in the collection. Your binding syntax is certainly correct.