views:

15

answers:

1

Hey guys,

is there a way of extracting a content template of a WPF control which is hosted in a running WPF application?

Just the same way as I am able to dig through the visual tree of any WPF application with tools like Snoop I'd like to be able to extract the Content Template.

I have asked Google already. But either my keywords were totally wrong or there might be no solution (what I doubt).

Could please someone give me a hint?

Thank you

A: 

The Template is defined in Xaml, which ends up as Binary Xaml (Baml), which is going to make it much harder, if not impossible, to get the Template in Xaml format decompiled.

benPearce
Mhm.. wouldn't have expected it to be impossible to get the template as Reflector for example doesn't have too many issues with resolving plain XAML out of BAML.
TwinHabit