0

In wpf, is it somehow possible to lookup the definition of the default style of a control?

In this question I saw an example thereof, see: "just for a reference, here's the default MenuItem's style". Where did he/she find it?

Community
  • 1
  • 1
Gerard
  • 13,023
  • 14
  • 72
  • 125
  • 1
    You will usually find it if you search MSDN for ` styles and templates`. – Clemens Sep 27 '13 at 12:33
  • http://stackoverflow.com/questions/18832352/how-to-inspect-microsoft-windows-themes – eran otzap Sep 27 '13 at 12:38
  • Does this answer your question? [How/Where to Find Microsoft Default Styles for WPF Controls](https://stackoverflow.com/questions/9068830/how-where-to-find-microsoft-default-styles-for-wpf-controls) – StayOnTarget May 04 '21 at 15:38

1 Answers1

3

using Expressin Blend is the best answer for this. in Expression blend select the control on which you whould like to see the tamplate then right click and select the template then Edit a copy. this will create a copy os used tempalte will explorer the orignal template if you are not using any theme.

On the other hand you can look for http://wpfinspector.codeplex.com/

JSJ
  • 5,653
  • 3
  • 25
  • 32
  • Ok, I just noted that in visual studio designer 'template -> edit a copy' is also available. – Gerard Sep 27 '13 at 13:54