views:

44

answers:

1

As per this MSDN link,

There is no way to replace only part of the visual tree of a control; to change the visual tree of a control you must set the Template property of the control to its new and complete ControlTemplate

.

I am trying to disable the click behaviour of GridViewColumnHeader ( I need to remove some triggers in the original control template), but i am not able to find the native "ColumnHeaderContainerStyle". All those i have found seem to have already done some customization and it is being difficult to get the original look and feel.

Can someone please suggest me how/where can i get the original control templates as defined in the native WPF controls?

Thanks for your interest.

+5  A: 

You can find the templates for all themes here at MSDN.

Furthermore, there are several tools out there which can read the styles from an assembly. For example, you could use Style Snooper. However, for your scenario (getting the built-in templates), the above MSDN link should be the easiest.

gehho
Also Blend can extract the defaults.
sixlettervariables
Cool, I didn't know the default themes were available for download... thanks for the link !
Thomas Levesque
@gehho: Sorry, i tried the above link. There is so much in there, can you please suggest where should i look for the Control Template download ?
Amby
gehho
@gehho: Perfect!! thanks a lot for your help.
Amby