public Camera(VideoBrush video, int photocount)
{
if (PhotoCamera.IsCameraTypeSupported(CameraType.Primary) == true)
{
// There is a camera. Which I already know. But useful if I decide to use this in any other apps.
cam = new Microsoft.Devices.PhotoCamera(CameraType.Primary);
photoname = photocount;
videobrush = video;
}
}