[英]Win Phone System.Windows.Controls.Control not found
I'm developing a universal windows 8.1 app, though I'm primarily working on the windows phone version. 尽管我主要在Windows Phone版本上工作,但我正在开发通用的Windows 8.1应用程序。
System.Controls.control should work for windows phone, but whenever I add System.Windows.Controls.dll to my Win Phone 8.1 references, my project won't compile and it says: System.Controls.control应该适用于Windows Phone,但是每当我将System.Windows.Controls.dll添加到Win Phone 8.1引用中时,我的项目都不会编译,并显示:
Cannot find type System.Windows.Controls.Control in module System.Windows.dll
This happens whether or not i actually say "using system.win.." etc, it happens as soon as I add it to my project references. 无论我实际上是否说“ using system.win ..”等,都会发生这种情况,将其添加到项目引用中后,就会发生这种情况。 This dll is from my programfiles(x86)/microsoftsdks/silverlight directory. 该dll来自我的programfiles(x86)/ microsoftsdks / silverlight目录。
Any ideas on how to fix this issue? 有关如何解决此问题的任何想法?
You're trying to use Silverlight controls in a WinRT app. 您正在尝试在WinRT应用程序中使用Silverlight控件。 That won't work. 那行不通。 New UI controls are a part of Windows.UI.Xaml.Controls. 新的UI控件是Windows.UI.Xaml.Controls的一部分。
Find the list of controls which are in that namespace here . 在此处找到该名称空间中的控件列表。 Also, please read more about the two different XAML models available in Windows Phone 8.1. 另外,请阅读有关 Windows Phone 8.1中可用的两种不同XAML模型的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.