在 wp7 中下载文件 [英] Download Files in wp7

查看:36
本文介绍了在 wp7 中下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 Windows 手机应用程序,它允许用户从服务器下载文件.用户可以同时选择多个文件进行下载.当用户停留在当前页面直到下载完成时,它可以完美运行.如果用户在文件下载过程中导航到其他页面,下载将停止.即使用户导航到其他页面,下载也应继续.

I am developing a windows phone application which allows user to download files from server. The user can select multiple files simultaneously for download. It works perfectly when the user stay on current page until download completed. If the user navigate to other pages when the file download is in progress the download stops. The download should continue even if the user navigate to other pages.

此外,当应用程序退出时,下载也会停止.当用户再次启动应用程序时,挂起的文件应自动开始下载.

Also when the application exits the download stops. When the user starts the application again the pending files should automatically start download.

我该怎么做?

推荐答案

如果文件很大,您应该使用 BackgroundTransferRequest,即使应用程序没有运行,它也会继续,您仍然可以跟踪其进度.

If the files are large you should be using BackgroundTransferRequest, which will continue even if the application is not running and you can still track their progress.

有关详细信息,请参阅Windows Phone 的后台文件传输概述

这篇关于在 wp7 中下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆