我也面临这个问题。我的问题的根本原因如下。
1)我在我的代码中引用如下。但我没有添加库(System.Xml.Serialization.xml)。添加引用并选择System.Xml.Serialization.xml以包含该dll。
System.Xml.Serialization
2)I使用称为FileList.xaml一个用户控件在主窗口
FileList.xaml
<AM:time2str x:Key="time2str"/>
但是我没有添加其继承IMultiValueConverter
类MainWindow.xaml.cs(我错过了下面的代码)
public class time2str : IMultiValueConverter
{
public object Convert(object[] values, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
********************
}
public object[] ConvertBack(object value, System.Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
throw new System.NotImplementedException();
}
}
这也为我工作,因为我有同样的问题只是upgradind我的WP7应用WP8之后。 – 2013-06-04 00:18:46
作为一种变体,我尝试了另一种方式:将我的项目语言环境设置为与我的系统相同(我不想更改我的系统的区域设置)。我的方法不起作用。 – amenthes 2015-04-17 16:14:51
也为我工作 – jackjop 2015-07-10 13:28:30