Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 wp7 中使用两个选择器,一个是 PhotoChooserTask,另一个是 CameraCaptureTask,我每次只需要使用其中一个,如何在启动另一个之前停止一个,如果我在第一个之前启动另一个会抛出异常一个回报。非常感谢。
封装
somechooser.Show();
在 try-catch 块内。
如果用户在最后一个选择器打开或正确关闭之前尝试打开另一个选择器,它将捕获异常。