Hi,
alright I figured out 2 things:
1) That the addedItems list was empty was probably due to an event order issue. I think that the event for the selected element was somehow processed first. Why I cannot say exactly, because it only happens, when the Listview had a selected Item, without a selection it works.
2) In the event handler I tried to get the ListViewItem for the newly added element. But when the event is fired, but it does not exist yet. So I have to figure out something else, because I want to change the ListViewItem, when it is selected.
So think my issue has to do with event processing and threading. I didn't really look into that yet. If anybody could point out on where to find out more about that, I would appreciate that.
Regards,
Rico
alright I figured out 2 things:
1) That the addedItems list was empty was probably due to an event order issue. I think that the event for the selected element was somehow processed first. Why I cannot say exactly, because it only happens, when the Listview had a selected Item, without a selection it works.
2) In the event handler I tried to get the ListViewItem for the newly added element. But when the event is fired, but it does not exist yet. So I have to figure out something else, because I want to change the ListViewItem, when it is selected.
So think my issue has to do with event processing and threading. I didn't really look into that yet. If anybody could point out on where to find out more about that, I would appreciate that.
Regards,
Rico
No comments:
Post a Comment