0

I got the otherway around ObservableCollection -> datatabel -> XML File.

Can also load the XML file -> Datatabel -> ListView.

But the ListView is also used in another Page of the application, so I need it bound to ObservableCollection again.

I hadn't luck finding similar problem, which solution worked for me. (DataTable to observable collection).


Okay, so I've been looking into XML Serialize and XML Deserialize. (Followed this how to: What is the easiest way to save an Observable collectin of object to an XML file?)

It saves into a file which looks like this:

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfSong xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

When I try to load it, Listview doesn't refresh. Anything I'm missing?

Community
  • 1
  • 1
Sinnich
  • 342
  • 5
  • 17

1 Answers1

0

What is the easiest way to save an Observable collectin of object to an XML file?

Making my whole Collection public, and the XML Serialized etc. Solved it.

Community
  • 1
  • 1
Sinnich
  • 342
  • 5
  • 17