摘要: 在ListBox中碰到过几个问题,现在把它写出来:第一个就是在ListBoxItem中当我用触发器IsSelected和IsMouseOver来设置Background和Foreground的时候,Foreground是可以直接设置的,但是Background的颜色是不会改变的。网上查了下貌似是需要手动更改ListBoxItem的控件模板让其直接使用ListBoxItem的Background属性。如下:<Style x:Key="itemtemplate" TargetType="ListBoxItem"> <Setter Prope 阅读全文
posted @ 2013-06-20 00:57 世界很灰暗 阅读(1128) 评论(1) 推荐(1) 编辑