I’m trying to add a reference to the namespace System.Windows.Controls in a library project but i can’t find it in the list.
Does anybody know what is going on? i’m using 4.0.
thanks.
I’m trying to add a reference to the namespace System.Windows.Controls in a library project
Share
You need to learn to distinguish between assembly names and namespaces. They’re not in a 1-1 correspondence.
If you’re wanting to access e.g. System.Windows.Controls.Button, you need to reference the
PresentationFrameworkassembly, which does seem to contain most of the classes documented on MSDN as being in the System.Windows.Controls namespace.Multiple assemblies can contribute classes/controls to a single namespace. And there’s no requirement that all (or even the majority) of classes from an assembly all reside within a single namespace.