Browse Source

Fix CollectionControlDialog control may cause 'System.ArgumentOutOfRangeException'

pull/1332/head
ZhangPeng 8 years ago
parent
commit
6019e1fef4
  1. 3
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml.cs
  2. 3
      ExtendedWPFToolkitSolution_35/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml.cs

3
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml.cs

@ -227,6 +227,9 @@ namespace Xceed.Wpf.Toolkit
Debug.Assert( result != null );
if( result != null )
{
if (result is ICollection
&& ((ICollection)result).Count == 0)
return result;
var properties = sourceType.GetProperties();
foreach( var propertyInfo in properties )

3
ExtendedWPFToolkitSolution_35/Src/Xceed.Wpf.Toolkit/CollectionControl/Implementation/CollectionControlDialog.xaml.cs

@ -227,6 +227,9 @@ namespace Xceed.Wpf.Toolkit
Debug.Assert( result != null );
if( result != null )
{
if (result is ICollection
&& ((ICollection)result).Count == 0)
return result;
var properties = sourceType.GetProperties();
foreach( var propertyInfo in properties )

Loading…
Cancel
Save