【发布时间】:2013-04-24 08:07:29
【问题描述】:
考虑以下代码:
int lastItemIndex = m_listbox.ItemsSource.Count - 1;
var groupItem = m_listbox.ItemsSource[lastItemIndex] as GroupedObservableCollection<ScheduleItem, DateTime>;
在像WPF/Silverlight/WP这样的多线程环境中,有没有什么办法可以保证lastItemIndex真的是第二行的最后一个item的索引?
【问题讨论】:
标签: c# wpf multithreading concurrency windows-phone-8