How to add System.Windows dll to Visual Studio 2010 express?

Sri picture Sri · May 17, 2011 · Viewed 10.3k times · Source

I am developing a small application using C# and VS2010 as IDE with .NET Framework 4.

I want to use CaptureSource class in order to capture video from laptop's webcam.
For that i need to add a namespace System.Windows.DependencyObject.

How can I add this? In the Solution Explorer, if I right clicked on Referenced, then .NET tab, I wont be able to see System.Windows. Please see the attached file the same.

Please anyone help me in adding this System.Windows dll.

Thanks in Advance
Sri

Answer

Jim Counts picture Jim Counts · May 17, 2011

According to this MSDN Page the class is in the WindowsBase.dll file.

Namespace:  System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

DependencyObject is a class you cannot add it as a namespace. The closest thing you can do is add the namespace it is located in:

using System.Windows;