diff --git a/Aurora/Design/Components/DataGrid/DataGrid.xaml.cs b/Aurora/Design/Components/DataGrid/DataGrid.xaml.cs index aba83ea..35eafee 100644 --- a/Aurora/Design/Components/DataGrid/DataGrid.xaml.cs +++ b/Aurora/Design/Components/DataGrid/DataGrid.xaml.cs @@ -99,10 +99,24 @@ namespace Aurora.Design.Components.DataGrid self._noDataView.IsVisible = false; } }); - void HandleItemsSourceCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { - InternalItems = new List(((IEnumerable)sender).Cast()); + // InternalItems = new List(((IEnumerable)sender).Cast()); + if (e.NewItems != null) + { + foreach (object item in e.NewItems) + { + InternalItems.Add(item); + } + } + + if (e.OldItems != null) + { + foreach (object item in e.OldItems) + { + InternalItems.Remove(item); + } + } if (SelectedItem != null && !InternalItems.Contains(SelectedItem)) SelectedItem = null; } diff --git a/Aurora/Design/Components/HostSelector/HostSelector.xaml b/Aurora/Design/Components/HostSelector/HostSelector.xaml deleted file mode 100644 index 931ce04..0000000 --- a/Aurora/Design/Components/HostSelector/HostSelector.xaml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -