An Extension Method to Dump Control Templates of WPF Controls

By Anoop Madhusudanan

In Blend, you have the ability to create a copy of the control template of a control, and edit it (Right Click – Edit Template – > Edit A Copy). If you are interested, you can dump the Control template of any given WPF control pretty easily, from the source code as well.

Here is a simple extension method to dump the control template of a WPF control.