/// <summary>
        /// Initializes camera. Fires CameraInitialized event.
        /// </summary>
        /// <returns></returns>
        public async Task InitializeSource()
        {
            await source.InitializeAsync();

            var tag = CaptureElement.GetValue(FrameworkElement.TagProperty);

            WindowsCameraViewManager.AddView(Convert.ToInt64(tag), this);
        }
 public async void TakeColorPictureAsync(int viewTag, IReactPromise <JSValueObject> promise)
 {
     await WindowsCameraViewManager.TakePicture(viewTag, MediaFrameSourceKind.Color, promise);
 }
 public void TurnCameraOff(int viewTag)
 {
     WindowsCameraViewManager.TurnCameraOff(viewTag);
 }