Adding files to WP7 isolated storage from Visual Studio?

后端 未结 3 650
再見小時候
再見小時候 2021-01-06 07:39

I\'m working on an Windows Phone 7 app where I\'m going to show ATM\'s nere your location with bing maps.

I have an xml-file with addresses and gps coordinates. But

3条回答
  •  庸人自扰
    2021-01-06 08:08

    You cannot directly pass files to the isolated storage at design time. Only when the application is running.

    I'd still recommend passing the file to the application through a web service. Mainly because if eventually you will need to change the contents of the XML, you will need to update the application.

    What I would do is simply create a WCF service that will return serialized data (or the existing XML) via a simple HTTP request.

提交回复
热议问题