fixed #446
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user