<Border>
    <Border.Style>
        <Style TargetType="Border">
            <Setter Property="Background" Value="{x:Null}"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Background" Value="White"/>
            <Setter Property="Effect">
                <Setter.Value>
                    <DropShadowEffect BlurRadius="20" Opacity="0.3" ShadowDepth="0" Color="#19334E"/>
                </Setter.Value>
            </Setter>
        </Style>
    </Border.Style>
    <Image Width="1080" Height="720"  Source="Imgs/01.png" />
</Border>

效果图如下:

带阴影效果的图片.png

标签: Wpf, 图片阴影, Image

添加新评论