首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ContentView没有ControlTemplate

ContentView没有ControlTemplate
EN

Stack Overflow用户
提问于 2016-05-12 17:19:33
回答 1查看 268关注 0票数 0

我刚开始使用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版本。

如有任何建议,敬请见谅。

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-12 17:23:16

使用VS中的Nuget管理器确保您有最新版本的Xamarin窗体包。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37193561

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档