Skip to content

Commit 290c426

Browse files
committed
try fixing collection edt...
1 parent 981b663 commit 290c426

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ private object Clone( object source )
210210
{
211211
result = this.GenerateEditableKeyValuePair( source );
212212
}
213+
else if (sourceType == typeof(string))
214+
{ result = source; }
213215
else
214216
{
215217
// Initialized a new object with default values
@@ -232,7 +234,7 @@ private object Clone( object source )
232234
}
233235
}
234236
Debug.Assert( result != null );
235-
if( result != null )
237+
if( result != null && !(result is string))
236238
{
237239
var properties = sourceType.GetProperties();
238240

0 commit comments

Comments
 (0)