0

I'm developing a universal windows 8.1 app, though I'm primarily working on the windows phone version.

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:

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. This dll is from my programfiles(x86)/microsoftsdks/silverlight directory.

Any ideas on how to fix this issue?

user2015125
  • 21
  • 1
  • 3

1 Answers1

2

You're trying to use Silverlight controls in a WinRT app. That won't work. New UI controls are a part of 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.

Igor Ralic
  • 14,975
  • 4
  • 43
  • 51