WPF update binding to element in an array

前端 未结 6 1465
野趣味
野趣味 2021-01-02 16:06

I\'ve searched my little heart out and its entirely possible that I\'m missing something critical and obvious.

I have a BitArray and a series of checkboxes that are

6条回答
  •  离开以前
    2021-01-02 16:44

    I've never tried this approach before but I don't think this will work. Because the property you are waiting to see the setter fire is not the property bound. NameArray is not the same as NameArray[i].

    I would suggest looking into the ObservableCollection and templating to achieve multiple checkboxes. For example you could create a horizontal listbox of checkboxes that bind to an ObservableCollection.

提交回复
热议问题