Reputation: 11972
I have a solution with about 12 projects, one is set as the startup project and this contains the main window. At the moment all of my IValueConverter
s are inside this project.
I now want to move them into a separate project that will hold only converters. This way I will be able to reuse them across all the projects, not just the main window.
I get the error:
"Error 3 The type or namespace name 'IValueConverter' could not be found (are you missing a using directive or an assembly reference?) "
Upvotes: 7
Views: 4853
Reputation: 174309
You need to add a reference to PresentationFramework.dll, that's where IValueConverter
is actually defined.
Looking at the documentation you can find that information at the top:
Namespace: System.Windows.Data
Assembly: PresentationFramework (in PresentationFramework.dll)
Upvotes: 20