embarrassingly basic questions about getting started with WPF MediaKit

May 15, 2009 at 8:26 PM

Hi,

I'm working in Visual C# 2008 Express on an XP (SP3 of course) box, and trying to use VideoCaptureElement to display output from a USB web cam.  I added the WPFMediaKit dll as a reference in my solution, but when I try to use the XAML example code to call it, it's hitting me with

The type 'WPFMediaKit:VideoCaptureElement' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

And yet!  In the window's underlying cs file intellisense is perfectly happy to autocomplete wpfmediakit stuff for me.  So I have the feeling that I am overlooking something so mind-numbingly basic that it isn't mentioned on the site (maybe creating a new VideoCaptureElement in the C# code?  As you can see from the above cluelessness, I am an extreme beginner).  I would be very grateful if you could point me in the right direction here.  

-John

Oct 7, 2009 at 8:40 PM
Edited Oct 15, 2009 at 2:05 PM

I'm guessing you've solved this by now (but in case anyone else doesn't)...

In your XAML you need to add:

xmlns:DShow="clr-namespace:WPFMediaKit.DirectShow.Controls;assembly=WPFMediaKit"

Then whereever you're placing that control you use:

<DShow:VideoCaptureElement x:Name="videoCapElement"........../>