Browse Source

Fixes issue #1787

pull/1788/head
Alexis Nowikowski 2 years ago
parent
commit
494d0cd0ff
  1. 4
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Primitives/SelectAllSelector.cs

4
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Primitives/SelectAllSelector.cs

@ -174,7 +174,7 @@ namespace Xceed.Wpf.Toolkit.Primitives
public void SelectAll() public void SelectAll()
{ {
var currentSelectedItems = new List<object>( this.SelectedItems as IEnumerable<object> ); var currentSelectedItems = new List<object>( this.SelectedItems.Cast<object>() );
var items = this.ItemsCollection.Cast<object>(); var items = this.ItemsCollection.Cast<object>();
// Have a faster selection when there are more than 200 items. // Have a faster selection when there are more than 200 items.
@ -195,7 +195,7 @@ namespace Xceed.Wpf.Toolkit.Primitives
public void UnSelectAll() public void UnSelectAll()
{ {
var currentSelectedItems = new List<object>( this.SelectedItems as IEnumerable<object> ); var currentSelectedItems = new List<object>( this.SelectedItems.Cast<object>() );
this.SelectedItems.Clear(); this.SelectedItems.Clear();

Loading…
Cancel
Save