在WPF现有的控制控制模板 [英] Control template for existing controls in WPF

查看:203
本文介绍了在WPF现有的控制控制模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得在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 下载,请参阅<一href="http://archive.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=wpfsamples&DownloadId=7812"><$c$c>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.

这篇关于在WPF现有的控制控制模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆