Docs / Utility to View WPF Control Template?

Is there any documentation / utility that shows the default control template for a given control? I would like to see how a given control is constructed, so I can set the behavior correctly and / or choose a style instead ...

+2


source to share


2 answers


Here are the reference numbers that demonstrate this.



I also checked out Kaxaml , which contains some code snippets called Simple Styles. These are templates for all controls that are not as complex as the default behavior, which can be a little esoteric at times.

+1


source


It seems to me that you want to try StyleSnooper . It can load the assembly and show you the effective XAML that defines each control ControlTemplate

.

http://dotnet-gui.com/blogs/wpf_tools_blog/WindowsLiveWriter/StyleSnooperDenStandardStylesaufderSpur_F211/image_2.png



Both binary and source versions are available. This tool is really great in your WPF arsenal.

+1


source







All Articles