diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Primitives/SelectAllSelector.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Primitives/SelectAllSelector.cs index c34a7749..c4f7f959 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Primitives/SelectAllSelector.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Primitives/SelectAllSelector.cs @@ -174,7 +174,7 @@ public override void OnApplyTemplate() public void SelectAll() { - var currentSelectedItems = new List( this.SelectedItems as IEnumerable ); + var currentSelectedItems = new List( this.SelectedItems.Cast() ); var items = this.ItemsCollection.Cast(); // Have a faster selection when there are more than 200 items. @@ -195,7 +195,7 @@ public void SelectAll() public void UnSelectAll() { - var currentSelectedItems = new List( this.SelectedItems as IEnumerable ); + var currentSelectedItems = new List( this.SelectedItems.Cast() ); this.SelectedItems.Clear();