项目场景:wpf使用Border 实现圆角无边框窗口
<Window x:Class="WpfApp1.View.Window1"
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:WpfApp1.View"
mc:Ignorable="d"
Background="Transparent"
AllowsTransparency="True"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
Title="Login" Height="400" Width="640">
<Grid>
<Border Background="Transparent">
<Border CornerRadius="10 10 10 10" Background="WhiteSmoke">
<Grid >
</Grid>
</Border>
</Border>
</Grid>
</Window>
![](https://i-blog.csdnimg.cn/blog_migrate/217eaecda8330c1eed3d0326ba815c3c.png)