WPF自定义窗体,去除最小化、最大化、关闭的标题栏
方式1:WindowStyle=“None”
<Window x:Class="WpfApp.NoTitleBarWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="NoTitleBarWindow"
WindowStyle="None"
AllowsTransparency="True">
<Grid>
<!-- 你的UI元素 -->
</Grid>
</Window>
方式2:高自定义(会屏蔽标题栏按钮),一般推荐方式1
<!--自定义窗体-->
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="40" CornerRadius="0" GlassFrameThickness="0"/>
</WindowChrome.WindowChrome>
1888

被折叠的 条评论
为什么被折叠?



