摘要: 项目开发中遇到一个要求,需要将ComboBox右侧中的小三角箭头给去掉,通过Blend工具“编辑ComboBox的模板副本”得知,这是一个名为"BtnArrow"的Path。但是在CS代码中,是无法引用到这个控件的。解决办法:重新定义一个类,继承自ComboBox,然后重写OnApplyTemplate方法,代码如下01using System.Windows;02using System.Windows.Controls;03using System.Windows.Shapes;0405namespace ContentTemplateTest06{07public c 阅读全文
posted @ 2011-09-07 09:49 牟向阳 阅读(355) 评论(0) 推荐(0) 编辑