这是代码:
<Window x:Class="WpfWindow.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" Topmost="True" WindowStyle="None" ResizeMode="NoResize"
d:DesignHeight="300" d:DesignWidth="300" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen">
<Label Content="Test label" />
</Window>
Run Code Online (Sandbox Code Playgroud)
它产生以下图像:

只要设置了以下参数,它似乎不断重现:
如果我为窗口设置边框颜色,我希望它会消失,但是,即使我这样做,它也会停留在那里......
任何人都知道如何让这条线消失?
谢谢!