Universal App Camera RRS feed

  • Question

  • hi i am just used CameraCaptureUI its working fine .

    this code run then start the camera and preview , then click it take picture .

    var camera = new CameraCaptureUI();
        var file = await camera.CaptureFileAsync(CameraCaptureUIMode.Photo);


    Universal App USing MVVM

    But this code taking picture but its not showing preview , which picture need to take without preview just

    button click its taking picture only , I want show preview Help Me

    private async void CaptureImage() { Windows.Media.Capture.MediaCapture takePhotoManager = new Windows.Media.Capture.MediaCapture(); await takePhotoManager.InitializeAsync(); ImageEncodingProperties imgFormat = ImageEncodingProperties.CreateJpeg(); // a file to save a photo IStorageFile file = await KnownFolders.PicturesLibrary.CreateFileAsync( "Photo.jpg", CreationCollisionOption.GenerateUniqueName); await takePhotoManager.CapturePhotoToStorageFileAsync(imgFormat, file); }

    Monday, November 3, 2014 3:25 AM


  • I think you may refer to this website for more details.


    and you also may refer to my website.


    Monday, November 3, 2014 7:00 AM