Wpf窗体实现半透明

版权声明:本文章博主原创,希望对你有所帮助。 https://blog.csdn.net/sakenc/article/details/90730964

<Window x:Class=“Aviation.Main”
xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml
WindowStartupLocation=“CenterScreen”
Opacity=“0.5” AllowsTransparency=“True” WindowStyle=“None”
Title=“航空货运业务系统” Height=“768” Width=“1330” MinHeight=“600” MinWidth=“900”
MouseDown=“Window_MouseDown” ResizeMode=“CanResizeWithGrip” Loaded=“Window_Loaded”>

窗体属性设置:Background=“Transparent” AllowsTransparency=“True” WindowStyle=“None”
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/sakenc/article/details/90730964