简体   繁体   English

如何在WP7中打开文件

[英]How to open file in wp7

I have a file in my IsolatedStorage . 我的IsolatedStorage有一个文件。 I need to open the file from my application. 我需要从我的应用程序中打开文件。 I tried to open it in WebBrowser like this 我试图像这样在WebBrowser中打开它

private void OpenFile(string url)
{
    WebBrowserTask task = new WebBrowserTask();
    task.Uri = new Uri(url);
    task.Show();
}

but it throws an exception. 但这会引发异常。 The error message is Invalid URI: The format of the URI could not be determined. 错误消息是无效的URI: The format of the URI could not be determined.

How can I open the file in my application? 如何在应用程序中打开文件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM