Hi All, I have a XMLDataProvider Static Resource as for my Data listing some products. I have two Controls as Master Detail scenerio 1) ListBox which lists all the Product Titles and 2) COntentControl which displays the Product details.
Now its working fine at the moment but the ContentControl is using a hard-coded Template. What I want is to display products with different templates and ContentControl 's ContentTemplate should be picked up dynamically based upon the Product's field (TemplateName). How can I do that? I'm stuck in writing the SelectTemplate override method in which I don't know how to access the TemplateName Property from parameter(object).
Any code would be helpful?