This sample demonstrates how to take pictures and videos using the CameraCaptureDialog managed API. If a default filename is used: - if a still picture is taken, the ".jpg" extension is appended to the default filename. (Otherwise the CameraCaptureDialog would throw an InvalidArgumentException). - if a video is recorded, null is passed to the CameraCaptureDialog as the default filename. The filename returned is then renamed to match the user entered filename while keeping the extension returned.