Solved

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

Posted on 2011-09-02
1
302 Views
Last Modified: 2012-05-12
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
Comment
Question by:thenthorn1010
1 Comment
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 36474501
Have you added a reference to the PresentationFramework.dll?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now