<Window
x:Class="WpfApp2.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:local="clr-namespace:WpfApp2"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="1100"
Height="700"
WindowChrome.WindowChrome="{DynamicResource WindowChromeKey}"
WindowStyle="None"
mc:Ignorable="d">
<Window.Resources>
<WindowChrome x:Key="WindowChromeKey">
<WindowChrome.CaptionHeight>0</WindowChrome.CaptionHeight>
<WindowChrome.ResizeBorderThickness>
<Thickness>1</Thickness>
</WindowChrome.ResizeBorderThickness>
</WindowChrome>
</Window.Resources>
</Window>
WPF无边框并去除上白边
于 2023-07-10 11:03:37 首次发布