Aug 3, 2011 at 8:01 PM
Edited Aug 3, 2011 at 8:46 PM
Just debugged the silverlight source code. As I said I implement Interface IDataErrorInfo. The problem is not the Error property but
public string this[string columnName]
There I get the TargetParameterCountException at Extension.cs in
public static object GetValue(this PropertyInfo propertyInfo, object from)
return propertyInfo.GetValue(from, null);
This exception can be removed by simply wrapping the return with try/catch and return null in case of an TargetParameterCountException.
Doing so I get the next exception:
Object of type 'System.Collections.Generic.List`1[xyz]' cannot be converted to type 'System.Collections.ObjectModel.ObservableCollection`1[abc]'.
in CloneInjection class' SetValue method. If write
var tlist = typeof(ObservableCollection<>).MakeGenericType(t);
it works as long as T from source and target are the same. Does someone has a solution to the ObservableCollection problem (maybe only in Silverlight a problem??)?
var tlist = typeof(List<>).MakeGenericType(t);