<Window.Resources>
<BitmapEffectGroup x:Key="bmeButton">
<DropShadowBitmapEffect/>
</BitmapEffectGroup>
</Window.Resources>
<StackPanel Margin="5">
<StackPanel Orientation="Horizontal"></StackPanel>
<Button Width="218" BitmapEffect="{StaticResource bmeButton}" Height="65"></Button>
</StackPanel>
为什么这段代码在.NET3.5 和4.0下显示不一样呢?在.net 3.5下按钮是有阴影效果的,但是在4.0下出不来
<BitmapEffectGroup x:Key="bmeButton">
<DropShadowBitmapEffect/>
</BitmapEffectGroup>
</Window.Resources>
<StackPanel Margin="5">
<StackPanel Orientation="Horizontal"></StackPanel>
<Button Width="218" BitmapEffect="{StaticResource bmeButton}" Height="65"></Button>
</StackPanel>
为什么这段代码在.NET3.5 和4.0下显示不一样呢?在.net 3.5下按钮是有阴影效果的,但是在4.0下出不来
<Button.Effect>
<DropShadowEffect/>
</Button.Effect>
</Button>