ControlTemplate for existing controls in WPF

后端 未结 8 2056
野的像风
野的像风 2020-11-22 12:35

How to get existing control\'s ControlTemplate in WPF in XAML format (visual tree)? This is to help to create new ControlTemplate with the help of existing template.

8条回答
  •  半阙折子戏
    2020-11-22 12:52

    Check out StyleSnooper:

    It will dump out the standard styles (and therefore templates too) for the built in controls. You can also load in a specific DLL that contains WPF controls and view the default styles for those too.

提交回复
热议问题