ControlTemplate for existing controls in WPF

后端 未结 8 2030
野的像风
野的像风 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:41

    Use Microsoft Blend for it: Paste your entire XAML code in a file in this tool and right click the control whose visual tree you want to perceive:

    Select the option: Edit template and there you go

提交回复
热议问题