Wpf achieve the translucent form

Disclaimer: This article blogger original, I hope for your help. 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”>

Setting form properties: Background = "Transparent" AllowsTransparency = "True" WindowStyle = "None"
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/sakenc/article/details/90730964