Hi I’d like to use System.Windows.Data.IValueConverter, but when I try to add a reference to System.Windows.Data in VS2010, I only see System.Windows.Forms and System.Windows.Presentation. What am I missing? I’m using .NET 3.5 (not the client version), and I think the library should exist for that version. Switching my project to .NET 4.0 didn’t help. Googling didn’t turn up any people experiencing this problem. TIA.
Hi I’d like to use System.Windows.Data.IValueConverter, but when I try to add a reference
Share
Although
IValueConverteris in theSystem.Windows.Datanamespace, it’s in thePresentationFrameworkassembly. It’s worth being aware of the difference between the two concepts. An assembly is the unit of deployment in .NET, but a single assembly can have types in multiple namespaces, and multiple assemblies can contribute types to the same namespace.In practical terms, assemblies are what you add references to at the project level, and namespaces are what you have
usingdirectives for at the top of your source file 🙂When you’re not sure where a type is, in terms of either its namespace or its assembly, consult MSDN (such as the link above) which specifies both, like this: