Can anyone guide me on how to use XElement in Silverlight (C #) to read an XML file? is.
Thank you!
Here are some example codes:
Private zero page_loaded (object Sender, Routing Avenger, E.G.) {DataGrid1.ItemsSource = GetStatusReport (); } Public listing & lt; Status & gt; GetStatusReport () {List & lt; Status & gt; Status Report = New List & lt; Status & gt; (); Excellence Doctor = XElement.Load (@ "Data / StatusRep. Xml"); Status Report = (Get the GetStatus (el)) in Elements (in the doctor. ToList (); Report the return status; } Private Status Gettats (Excalement L) {Status S = New Status (); S.Description = el.Attribute ("Description"). Values; S.Date = DateTime.Parse (el.Attribute ("date"). Value); Return s; }