You can use one of the following to capture the image from web cam:
originally posted by
Then use the following to change the image control from the stored image.
private void ShowPhoto()
mainImage.Source = new BitmapImage(new Uri(@"pack://siteoforigin:,,,/images/userPhotoImage.jpg"));
This will load an image called userPhotoImage from the relative path (to the executable) "/images".