I think your solution would have (and is supposed to) work, except when I add an item and the CollectionChanged event is called, I receive the error:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Therefore, I am unable to add items after setting the DataContext. But something else that I just realized is that I am using this same ListBox for many different people (my app is a gift selection app, so each person will have different items selected in the list), so I will need to remember which items are selected regardless so that I can reselect them when a different person is displayed. Therefore, I will need programmatic selection of items anyway. Any ideas? Thanks.
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
No comments:
Post a Comment