<Window x:Class="iconfontDemo.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:iconfontDemo"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800" WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
>
<WindowChrome.WindowChrome>
<WindowChrome ResizeBorderThickness="4"/>
</WindowChrome.WindowChrome>
<StackPanel Background="White">
</StackPanel>
</Window>
ResizeBorderThickness 只需要设置这一个属性就好了。