Windows phone 8 WP8:设置采样数据
我想在wp8中为我的LongListSelector创建列表形式的示例数据,但无法使其工作。你能帮忙吗 ListEntryModel.cs: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&
[...]
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的英文版本,因此错误消息可能不准确。谢谢你的帮助