优化订单读取卡顿问题
This commit is contained in:
1 parent
c83521f36d
commit
1509e0a11d
15 files changed
+718
-542
No files matched your search
@@ -15,6 +15,9 @@ namespace _29WxOrderWpf.Converters
|
||||
{
|
||||
ListBoxItem item = (ListBoxItem)value;
|
||||
ListBox listView = ItemsControl.ItemsControlFromItemContainer(item) as ListBox;
|
||||
if (listView == null)
|
||||
return 0;
|
||||
|
||||
return listView.ItemContainerGenerator.IndexFromContainer(item) + 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user