none
FileOpenPicker.PickSingleFileAndContinue in WP Silverlight 8.1 RRS feed

  • 问题

  • 请问在Windows Phone Silverlight 8.1中调用文件选取器后如何继续运行应用?

    How to continue Windows Phone Silverlight 8.1 app after calling a file picker?

    根据文档http://msdn.microsoft.com/zh-cn/library/windows/apps/xaml/dn614994.aspx,调用PickSingleFileAndContinue方法后应用会被挂起,需要SuspensionManager类和ContinuationManager类以在应用状态恢复后读取选取的文件,在Windows Phone Silverlight 8.1中没有这两个类。

    Using PickSingleFileAndContinue Method, the app will be suspended, and SuspensionManager and ContinuationManager Class should be used for resuming the app state and getting the file picked when the app is activited. However, I can't find these two classes in WP Silverlight 8.1.

    文档http://msdn.microsoft.com/zh-cn/library/windows/apps/xaml/dn631755.aspx,给出了自定义ContinuationManager的完整源代码,但是在Windows Phone Silverlight 8.1项目中无法导入所需的命名空间。

    Also, in WP Silverlight project, I can't import the namespaces used in the code above.

    2014年8月7日 9:02

答案

全部回复