mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-04-04 23:39:26 +08:00
解决虚拟化时候索引超出范围的bug
This commit is contained in:
parent
379d2367f3
commit
9191f3d1ec
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user