【发布时间】:2017-01-14 14:12:31
【问题描述】:
我是 c# Cross-Platform 的新手,在 Visual Studio 的 xamarin.forms 中工作。从此link 复制了示例代码,出现了一些错误,例如找不到定义。谁能提供任何解决方案或想法,为什么我会收到此错误以及我错过了什么。
Main.cs
ListView listView = new ListView
{
ItemsSource = presidents,
ItemTemplate = cell // Set the ImageCell to the item template for the listview
};
我在上述链接中复制的代码中的上述行中出现错误。
【问题讨论】:
-
您确定您引用的是 Xamarin ListView 而不是本机 C#t ListView?
标签: c# android xamarin.ios xamarin.forms