实现效果如图: 

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>

相关文章:

  • 2021-12-27
  • 2021-11-17
  • 2021-11-17
  • 2022-01-29
  • 2021-12-04
  • 2022-01-25
  • 2021-12-27
  • 2021-11-17
猜你喜欢
  • 2021-12-19
  • 2021-10-14
  • 2021-12-11
  • 2021-12-26
  • 2021-07-19
  • 2021-11-17
  • 2021-12-27
相关资源
相似解决方案