mirror of
https://gitee.com/csharpui/CPF.git
synced 2026-02-26 13:43:11 +08:00
解决虚拟化时候索引超出范围的bug
This commit is contained in:
@@ -1031,7 +1031,7 @@ namespace CPF.Controls
|
||||
item.IsSetOnOwner = false;
|
||||
OnSetItem(item);
|
||||
}
|
||||
else
|
||||
else if(index < Items.Count)
|
||||
{
|
||||
var item = stackPanel.Children[i] as T;
|
||||
item.DataContext = Items[index];
|
||||
|
||||
Reference in New Issue
Block a user