I don't know if this works for SilverLight but if you don't get any other answers it might be worth your looking.
You can download the sourcecode that accompanies Charles Petzold's book "Applications = Code + Markup" from
here[
^]. In the code for Chapter 25 there is a 'DumpControlTemplate' project.