How do I create a silverlight data template in code? I\'ve seen plenty of examples for WPF, but nothing for Silverlight.
Edit: Here\'s the code I\'m now using this f
I had a few problems with this code, getting element not foung exceptions. Just for reference, it was that I needed my namesspace included in the DataTemplate...
private DataTemplate Create(Type type) { string xaml = @" "; return (DataTemplate)XamlReader.Load(xaml); }