I will try to figure them out, one by one,
Step 1 : Create Windows Universal Project.
- Open Visual Studio 2015 -> New Project.

Step 2: Give the Project Name.
- New Project Window will open. You can select an installed template like “Universal” under the Windows on Visual C# Template and select a Blank app (Universal Windows).
- Type the project name CameraApp and click OK button.

Step 3: Set the platform Versions.
- Here, we choose the Target Version and Minimum Version for our Universal Windows Application. Let it be like that and click OK.

Step 4: Choose Designer Window,
- The Project Main Window will be displayed. You can click the View - Designer.

Step 5: Designer Window Loading is given below:


Step 6 : Designing the App
- Design the app by placing the button tool from the tool box and change the name to camera in the Property Window.

- Next, place the Image tool from the tool box and change the name to capturedImage in the Property Window.

Step 7: Add the Coding
- To add coding, double click on the button. Add the mentioned source code, given below:

- using Windows.Media.Capture;
- using Windows.Storage;
- using Windows.Storage.Streams;
- using Windows.UI.Xaml.Media.Imaging;
- Add the code, given below, in the appropriate place (Camera Button) and added the keyword async in Camera click method.

- CameraCaptureUI captureUI = new CameraCaptureUI();
- captureUI.PhotoSettings.Format = CameraCaptureUIPhotoFormat.Jpeg;
- StorageFile image = await captureUI.CaptureFileAsync(CameraCaptureUIMode.Photo);
- BitmapImage bitmapImage = new BitmapImage();
- using(IRandomAccessStream fileStream = await image.OpenAsync(FileAccessMode.Read))
- {
- bitmapImage.SetSource(fileStream);
- }
- capturedImage.Source = bitmapImage;
Step 9: Run the Application
- Click the local machine on the Standard tool bar for running the Application.

Output

Conclusion
I hope you understood Camera app in Universal Window and how to run it. I have covered all the required things. If you find anything, which I missed in this article, please let me know. Please share your valuable feedback or suggestions.


Rama KrishnaPosted Aug 29, 2018, 3:35 AM EDT
Nice, But I have one doubt like without preview it has to take, could you explain how we can achieve this
Hanif HefazPosted Aug 18, 2016, 11:23 AM EDT
Very Nice Madam
Ramesh PalaniappanPosted Aug 10, 2016, 6:24 AM EDT
Good one
Alagunila MeganathanTOP 100Posted Aug 10, 2016, 5:30 AM EDT
Thanks
Anbu ManiPosted Aug 9, 2016, 8:12 PM EDT
Nice one
Inamullah KhanPosted Aug 9, 2016, 5:20 AM EDT
Very well explaination
Vignesh ManiTOP 100Posted Aug 9, 2016, 2:29 AM EDT
Good one
Bhavik PatelPosted Aug 8, 2016, 9:33 PM EDT
Nice
Asfend YarPosted Aug 8, 2016, 5:43 PM EDT
How to Add the picture effects just like candy camera and prisma in this ?
Prasanna MuraliPosted Aug 8, 2016, 5:07 PM EDT
Nice post sir....