How to Capture Photo in Windows Phone Store App ?

Your 2020 Plan. Learn 20 minutes a day for 20 days. Online courses from €9.99.

Below is a sample code snippet demonstrating how to capture photo in Windows Phone Store App programmatically using C#.

How to Capture Photo in Windows Phone Store App ?

Windows.Media.Capture.MediaCapture  medCap = new Windows.Media.Capture.MediaCapture();
await medCap.InitializeAsync(); 

Also note that you need to add the camera capabilities in the manifest file for the photo capture to work.

Leave a Reply

Your email address will not be published. Required fields are marked *