Xamarin窗体Windows意外退出

本文关键字:退出 意外 Windows 窗体 Xamarin | 更新日期: 2023-09-27 18:08:49

我使用xamarin表单1.4.4.6329后,我的更新windows应用程序意外退出应该是什么解决方案实际问题发生时,列表视图得到填充,我不能捕获实际的错误,但我所有的json数据加载在视图模型,我认为问题发生在视图内如果有人知道如何解决请帮助我

Xamarin窗体Windows意外退出

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