From 494d0cd0ff1e8b7fb43707c1a98c47bbb6241eff Mon Sep 17 00:00:00 2001 From: Alexis Nowikowski Date: Sat, 26 Oct 2024 18:15:52 +0200 Subject: [PATCH] Fixes issue #1787 --- .../Src/Xceed.Wpf.Toolkit/Primitives/SelectAllSelector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();