xamarin 表单 windows 意外退出

xamarin forms windows unexpectedly exited

更新后我正在使用 xamarin forms 1.4.4.6329 windows 应用程序意外退出应该如何解决 实际问题发生在列表视图被填充时我无法捕获实际错误但是我所有的 json 数据都在视图模型中加载我认为问题发生在视图内部如果有人知道如何解决请帮助我

public class StringToImageConverter : IValueConverter 
{ 
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 
{ 
    var filename = (string)value; 
    return ImageSource.FromFile(filename); 
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
    throw new NotImplementedException();
}}

并通过

调用它
cell.SetBinding(ImageCell.ImageSourceProperty, 
new Binding("IconSource", BindingMode.OneWay, new StringToImageConverter()));

我从 https://forums.xamarin.com/discussion/comment/83094/#Comment_83094

那里得到了代码