WPF Windows背景透明其中的文字保持不透明
阿新 • • 發佈:2019-01-01
實現效果如圖:
實現程式碼:
<Window x:Class="Gvitech.Application.WPF.UI.FunFacility.WindowEquipmentRecord" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="WindowEquipmentRecord" Height="300" Width="600" WindowStyle="None" WindowState="Normal" AllowsTransparency="True" > <Window.Background> <SolidColorBrush Opacity="0.6" Color="#001f55"></SolidColorBrush> </Window.Background>