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 );
}