请问WPF中的按钮等控件如何摆脱win7/vista自带样式
例如:给Button指定背景图,当鼠标位于按钮上时改变背景图,但win7在mouseover的时候会把我指定的背景图完全覆盖掉,就是那种淡青色,在winform中也会遇到这个问题,不知道有什么好的解决方法啊。还有就是wpf中的样式如何改变依赖项属性,例如:
<Button Width="64" Height="64" Style="{StaticResource playBg}">
<Button.Background>
<ImageBrush ImageSource="playA.png"></ImageBrush>
</Button.Background>
</Button>
<Window.Resources>
<Style x:Key="playBg">
<Style.Triggers>
<Trigger Property="Control.IsMouseOver" Value="true">
<Setter Property="Control.Background" Value="Black"></Setter>
</Trigger>
</Style.Triggers>
</Style>
例如红字部分,我想指定的是imagebrush应该怎么写。谢谢!
</Window.Resources> --------------------编程问答-------------------- 你好,我也是很想知道这个问题怎么处理,还有啊,我在VS2008上做的WPF 资源在VS2010上会报错,求解···
补充:.NET技术 , C#