(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Loading a static XML file to your Windows Phone/Silverlight App

(1 votes)
0 comments   /   posted by Silverlight Show on Aug 30, 2010
Tags:   xml , linq , windows-phone-7 , cheryl-simmons
In this post, Cheryl Simmons explains how to load a static xml file into your WP7 application.

Source: Silverlight SDK

In my application, I have a fair amount of static data that lends itself to an XML file very well…it’s not enough data for a database solution, but too much to hard-code into the app. My goal was to store the info in an xml file and load it into an LINQ XElement. Then I could easily use LINQ queries to get the data I needed into my application. Unfortunately, it took a bit of messing around to figure out how to load this data from the file. Following are the steps I took.


Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook

Our News on Twitter