• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

Error Attempting to Include Library/Class in C# VS 2008 Team Edition

I am attempting to create a ContextMenuEventArgs variable to pass into an event handler function. When I attempt to include the library "System.Windows.Controls", I end up with the error message "The type or namespace name 'Controls' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)" The code to include the library is:
using System.Windows.Controls;

I am using Visual Studio 2008 Team Edition, and I have verified that the library should have been installed with the .NET 3.0 and higher framework. Could someone help me out with this error, as I do not see anything wrong with the code that would cause this issue? Thank you in advance for your help.
0
thenthorn1010
Asked:
thenthorn1010
1 Solution
 
käµfm³d 👽Commented:
Have you added a reference to the PresentationFramework.dll?
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now