Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# xamarin窗体窗口意外退出_C#_Xamarin.ios_Xamarin.forms - Fatal编程技术网

C# xamarin窗体窗口意外退出

C# xamarin窗体窗口意外退出,c#,xamarin.ios,xamarin.forms,C#,Xamarin.ios,Xamarin.forms,在我的更新windows应用程序意外退出后,我正在使用xamarin forms 1.4.4.6329。解决方案是什么 实际问题发生在列表视图填充时我无法捕获实际错误,但我的所有json数据都加载到视图模型中我认为问题发生在视图内部如果有人知道如何解决,请帮助我 public class StringToImageConverter : IValueConverter { public object Convert(object value, Type targetType, object

在我的更新windows应用程序意外退出后,我正在使用xamarin forms 1.4.4.6329。解决方案是什么 实际问题发生在列表视图填充时我无法捕获实际错误,但我的所有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()));
我从你那里得到了密码

顺便打个电话

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

我从

中得到了代码,您应该首先通过删除应用程序的大块来隔离您的问题。然后,如果您认为自己遇到了错误,请在bugzilla.xamarin.com上提交一份错误报告。是的,从“System.String”到“xamarin.Forms.ImageSource”的转换现在无效。这是一个错误。您应该首先通过删除应用程序的大块来隔离问题。然后,如果您认为遇到了错误,请在bugzilla.xamarin.com上提交错误报告。是的,从'System.String'到'xamarin.Forms.ImageSource'的转换现在无效。这是错误