<Grid Name="Grid_Login" Opacity="0" Width="{Binding Width, ElementName=w}" Height="{Binding Height, ElementName=w}">
<Border CornerRadius="5" Margin="10" BorderThickness="2" BorderBrush="White" Opacity="0.8">
<Border.Effect>
<DropShadowEffect ShadowDepth="0" Color="#FF414141" BlurRadius="8"/>
</Border.Effect>
<Border Background="Black" Opacity="0.5" Margin="0" CornerRadius="5"/>
</Border>
</Grid>
//Window 中 AllowsTransparency="True"
(WPF) 半透明窗体
最新推荐文章于 2025-05-15 09:41:21 发布