简体   繁体   English

找不到Win Phone System.Windows.Controls.Control

[英]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.

相关问题 不带OnLoad方法的System.Windows.Controls.Control - System.Windows.Controls.Control without OnLoad method 如何将“System.Windows.Controls.TextBlock”转换为“System.Windows.Controls.Control”WPF3DFD74EFA19FBEZA23 - How to convert 'System.Windows.Controls.TextBlock' to 'System.Windows.Controls.Control' WPF C# System.Windows.Controls.Control和System.Windows.Forms.Control有什么区别? - What is the difference between System.Windows.Controls.Control and System.Windows.Forms.Control? Windows Phone - 在其他控件前显示控件 - Windows Phone - Display control in front of other controls Xaml Windows Phone中另一个用户控件中带有用户控件的StackPanel - StackPanel with User Controls in another User Control in Xaml Windows Phone 专注于Windows Phone中的控件 - Focus on the controls in the Windows Phone 在'System.Windows.Controls.Button'的名称范围中找不到名称 - Name cannot be found in the name scope of 'System.Windows.Controls.Button' 无法在WPF中将System.windows.Controls.Image隐式转换为System.windows.form.control - Can't implicitly convert System.windows.Controls.Image into System.windows.form.control in WPF 无法从“ Windows.Phone.Media.Capture.PhotoCaptureDevice”转换为“ System.Windows.Controls.MediaElement” - cannot convert from 'Windows.Phone.Media.Capture.PhotoCaptureDevice' to 'System.Windows.Controls.MediaElement' Windows Phone创建控件的动画 - Windows phone create animation of controls
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM