Hey!
I am building a Silverlight application that should get it's elements from XML defined objects, but I am kinda stuck: how should I feed the Silverlight application with the data in the XML?
Example: get data from the following XML to display it in silverlight dynamically:
<?xml version="1.0" encoding="utf-8" ?>
<item>
0 item0 1 item1
I need to retrieve the id (0, 1, ...) and the name (item0, item1, ...) and generate a XAML with the data:
For example to insert that name (item0, item1, ...) as the Title of a TextBlock (instead of "__" in the next XAML):
<TextBlock x:name="title" Title="______">
I guess it's really easy, but I don't see it :-)
What would be a good approach? Can this be done by transforming XML to XAML using XSLT?
Any other suggestion?