You can programmatically use the DataTemplate class. First you have to
create the VisualTree of elements for the template and then you can
dynamically bind your XML data.
Here are two examples, I believe the combination of both will give you all
necessary to understand and implement the concept:
http://dedjo.blogspot.com/2007/03/cr...from-code.html http://blogs.microsoft.co.il/blogs/t...detection.aspx
HTH,
Plamen Ratchev
http://www.SQLStudio.com