Some time ago, I wrote an article about how to capture images from a webcam. The article contained some customized code that was originally posted by Tamir Khason.
On January 7th, 2009, Edgar commented that he wanted to control the device or selected camera via WPF bindings. I agreed that if the blog entry promised to give a WPF Webcam Control, it should support WPF bindings as well.
So, I have rewritten some parts of the webcam control so that fully supports WPF. If have also written a simple sample application that allows users that download the control to easily decide whether this control is useful or not.
I have implemented code that you can easily change the MonikerString of a CapDevice. This means that you can set one device to a CapPlayer object and simply set the device via WPF bindings. The example application shows how to bind a combobox to the available devices on the system and how to set the values via dependency properties.
You can see a screenshot of the example application below:
WebcamPlayer_1.1.zip (118.49 kb) [Downloads: 4706]