110,536
社区成员
发帖
与我相关
我的任务
分享
<Window x:Class="WpfApp2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp2"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Border Background="White">
<Border.Effect>
<DropShadowEffect BlurRadius="39" Color="Red" ShadowDepth="0" Direction="302"/>
</Border.Effect>
</Border>
</Window>
<Border Margin="10" BorderBrush="Black" BorderThickness="1" Background="White">
<Border.Effect>
<DropShadowEffect ShadowDepth="2"/>
</Border.Effect>
</Border>
估计你的代码有两个可能的问题,第一个是是阴影被裁剪,第二个就是没有设置边框