This commit is contained in:
NaBian committed 2020-07-21 23:35:55 +08:00
1 parent c6fbffb32e
commit c3ba2d5c96
2 files changed
+50 -23

No files matched your search

@@ -43,10 +43,10 @@ namespace HandyControl.Controls
}
if (e.NewItems != null)
{
foreach (FrameworkElement item in e.NewItems)
if (e.NewItems[0] is FrameworkElement item)
{
item.Style = ItemContainerStyle;
ItemsHost.Children.Add(item);
ItemsHost.Children.Insert(e.NewStartingIndex, item);
}
}
}