【WPF 控件】Window窗体设计


"WpfApp4.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp4"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800"
        MinWidth="300" MinHeight="800"
        Background="Transparent" //透明
        WindowStartupLocation="CenterScreen" //窗体开始出现在屏幕中的位置位置
        AllowsTransparency="True"//窗体设置成透明
        WindowStyle="None"  // 隐藏窗体外形
        ResizeMode="CanResizeWithGrip"  //调整窗体大小
        
        >

窗体效果如下:

WPF