WPF 中包含的三个效果类:BlurEffect、DropShadowEffect、ShaderEffect。
常用的是前面两个
一、BlurEffect
二、DropShadowEffect
Color:阴影颜色。
ShadowDepth:阴影与内容的距离,当设置为 0 ,则为环绕模式。
BlurRadius:阴影的宽度。
Opcity:透明度。
Direction:阴影方向。当 ShadowDepth = 0 无效
<Border.Effect>
<DropShadowEffect Color="Red" ShadowDepth="10" BlurRadius="15" Opacity="0.3" Direction="0"/>
</Border.Effect>