我刚开始使用xamarin来玩它,并且认为xamarin表单是一个开始学习的好地方。我开始学习本教程:https://developer.xamarin.com/guides/xamarin-forms/templates/control-templates/creating/
其中有一行如下:contentView.ControlTemplate = (originalTemplate) ? tealTemplate : aquaTemplate;
对我来说,问题在于我的本地代码说ContentView不包含ControlTemplate的定义。
文档中唯一与xamarin相关的使用语句是:using Xamarin.Forms;
我在类的顶部还有以下声明:ControlTemplate mainTemplate = new ControlTemplate(typeof(MainTemplate));
这有“找不到类型或名称空间ControlTemplate”的错误。
当我尝试重建时,它会把它作为一个错误抛出,所以这只是相对于2015年的缓慢而言。我昨天下载了。我的JDK是1.7.0_55。我的android昨天被下载(不知道在哪里找到版本),我的android NDk是r10e版本。
如有任何建议,敬请见谅。
谢谢
发布于 2016-05-12 17:23:16
使用VS中的Nuget管理器确保您有最新版本的Xamarin窗体包。
https://stackoverflow.com/questions/37193561
复制相似问题