在WPF现有的控制控制模板模板、WPF

2023-09-02 10:15:11 作者:听风说你

如何获得在XAML格式(视觉树)现有的WPF控件的控件模板? 这是为了帮助创造新的ControlTemplate与现有模板的帮助。

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.

推荐答案

随着模板实例的风格了的在MSDN 下载,请参阅Default WPF主题链接。

The styles along with template examples are up on MSDN for download, see the Default WPF Themes link.

不过,您也可以延长现有的样式而无需使用支持算法FMP 属性重新定义一切。

However you can also extend the existing style without redefining everything by using the BasedOn attribute.