Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.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
Windows phone 8 WP8:设置采样数据_Windows Phone 8_Sample Data - Fatal编程技术网

Windows phone 8 WP8:设置采样数据

Windows phone 8 WP8:设置采样数据,windows-phone-8,sample-data,Windows Phone 8,Sample Data,我想在wp8中为我的LongListSelector创建列表形式的示例数据,但无法使其工作。你能帮忙吗 ListEntryModel.cs: [...] namespace LongListSelectorStudies.ViewModels { public class ListEntryModel { public string Text { get; set;} public List&

我想在wp8中为我的LongListSelector创建列表形式的示例数据,但无法使其工作。你能帮忙吗

ListEntryModel.cs:

    [...]
    namespace LongListSelectorStudies.ViewModels
    {
        public class ListEntryModel
        {
            public string Text { get; set;}
            public List<string> Liste { get; set; }
        }
    }
SampleData.xaml:

   <vm:ListEntryModel 
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:vm="clr-namespace:LongListSelectorStudies.ViewModels"

      xmlns:sys="clr-namespace:System;assembly=mscorlib"

      Text="Test">

        <vm:ListEntryModel.Liste>
            <sys:String>One</sys:String>
            <sys:String>Two</sys:String>        
        </vm:ListEntryModel.Liste>

    </vm:ListEntryModel> 
错误:无法识别元素列表或元素不可访问。 我没有使用Visual Studio的英文版本,因此错误消息可能不准确。谢谢你的帮助