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

实现效果如图: 

实现代码:

 
  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.  
  6. <Window.Background>

  7. <SolidColorBrush Opacity="0.6" Color="#001f55"></SolidColorBrush>

  8. </Window.Background>

    扫描二维码关注公众号,回复: 2310282 查看本文章

猜你喜欢

转载自blog.csdn.net/bruce135lee/article/details/81129899