load a data template in Silverlight is painful job. You can always get some error like: The element is already a child of an element [line 0: position 0].
Please do not forget to add your library as the namespace and your assembly, even though your control is in the same assembly.
var template = (DataTemplate)XamlReader.Load(String.Format(@"
Post a Comment