做了个简单易懂的,这里放图。。。
整个代码是这样:
<Window x:Class="WpfTest.forTEST"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
WindowStyle="None" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" Background="{x:Null}" AllowsTransparency="True">
<Grid>
<Border Height="267" Width="245" CornerRadius="10" Background="#FFE4E7EC" VerticalAlignment="Top" Margin="0,5">
<Border.Effect>
<DropShadowEffect Color="Red" BlurRadius="11" Opacity="0.7" ShadowDepth="0&#