(WPF) 半透明窗體
阿新 • • 發佈:2019-02-19
<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"