public void Release()
 {
     CaptureSession.StopRunning();
     Recorder.Dispose();
     Queue.Dispose();
     CaptureSession.RemoveOutput(Output);
     CaptureSession.RemoveInput(Input);
     Output.Dispose();
     Input.Dispose();
     MainDevice.Dispose();
     this.RemoveGestureRecognizer(Pinch);
 }