如何在选择器选项卡完成时显示相机应用程序和捕获。我在window phone中使用了CameraCaptureTask。http://msdn.microsoft.com/en-us/library/windows/apps/hh394006%28v=vs.105%29.aspx。但它在window 8.1运行时中丢失了。
发布于 2014-08-17 03:36:27
在Windows phone8.1XAML应用程序中,您可以使用FileOpenPicker从图片库或相机中选择上午的图像。确保已将".jpg“添加到拾取器文件类型,否则相机按钮可能不会显示。以下是示例代码:
FileOpenPicker picker = new FileOpenPicker();
picker.FileTypeFilter.Add(".png");
picker.FileTypeFilter.Add(".jpg");
picker.ContinuationData["DATA"] = "MYDATA"; // The app may be closed while displaying the picker dialog, and this data will be passed back to the application on activation.
picker.PickSingleFileAndContinue();https://stackoverflow.com/questions/25283066
复制相似问题