From d5d2fcb6bffc540f00bb924327db9ef4e2f2ac57 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Fri, 15 Feb 2019 11:36:14 +0000 Subject: [PATCH] Attempt 3 at fixing nonsense build error --- .../Implementation/CollectionControlDialog.xaml | 2 +- .../Implementation/CollectionControlDialog.xaml.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml index aec19954..8751a329 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml @@ -29,7 +29,7 @@ - + var keys = _localCollectionControl.Items.Select( x => { var keyType = x.GetType().GetProperty( "Key" ); if( keyType != null ) @@ -339,7 +339,7 @@ namespace Xceed.Wpf.Toolkit return null; } ); - return ( keys.Distinct().Count() == _collectionControl.Items.Count ) + return ( keys.Distinct().Count() == _localCollectionControl.Items.Count ) && keys.All( x => x != null ); }