views:

130

answers:

1

I have a listbox bound to a list of business objects. The items in the listbox are formatted using an itemtemplate. The itemtemplate includes a checkbox bound to a boolean property of the business object. When I spin up the app, the bool prop on the object in the list is changed when I click the checkbox. so far, so good.

The dialog has "select all" and "clear all" buttons. When I click on of these buttons, the properties on the objects are changed but the checkbox does not update.

The code in the select all click event is. . .

For Each x As BusObj In _BusObjList
  x.BlockIsInserted = True
Next

I can step through the code and watch the object properties change but the checkbox does not update. Any suggestions?

Thanks,

+2  A: 

using twoway binding should help I guess

{Binding ..., Path=Text, Mode=TwoWay}

And yes, is BlockIsInserted property dependency? or implemented INotifyPropertyChanged?

ArsenMkrt