I cannot add a link to namespace system.windows.controls to the library project

I am trying to add a reference to the System.Windows.Controls namespace in a library project, but I cannot find it in the list. Does anyone know what is going on? I am using 4.0. thank.

+5
source share
3 answers

You need to learn to distinguish between assembly names and namespaces. They are not in correspondence 1-1.

If you want access, for example. System.Windows.Controls.Button, you need to reference the assembly PresentationFramework, which seems to contain most of the classes documented on MSDN, like being in the System.Windows.Controls namespace .

Multiple assemblies can contribute classes / controls to a single namespace. And there is no requirement that all (or even most) classes from the assembly be in the same namespace.

+14
source

VS 2010: : , "", "". " " ".Net Framework 4 ", ".net Framework 4".

: , " PresentationFramework.dll" (. msdn Usercontrol), , , , .

0

System.Windows Silverlight toolkit. , .

0

All Articles