WPF Windows背景透明其中的文字保持不透明

实现效果如图: 

WPF Windows背景透明其中的文字保持不透明_第1张图片

实现代码:

  1. <Window x:Class="Gvitech.Application.WPF.UI.FunFacility.WindowEquipmentRecord"
  2. xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title= "WindowEquipmentRecord" Height= "300" Width= "600" WindowStyle= "None" WindowState= "Normal" AllowsTransparency= "True" >
  5. <Window.Background>
  6. <SolidColorBrush Opacity="0.6" Color="#001f55"> SolidColorBrush>
  7. Window.Background>

你可能感兴趣的:(WPF)