WPF设置ShowInTaskbar影响窗口最小化行为
发布时间
阅读量:
阅读量
在 WPF 环境下,当将 ShowInTaskbar 属性配置为 False 时,对应的窗口将不会出现在任务栏中。在这种情况下,若用户执行窗口最小化操作,该窗口将会被隐藏,从而成为一种在无任务栏显示状态下的呈现方式。
如以下代码所示
<Window x:Class="BekairlilearDujalgereno.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:BekairlilearDujalgereno"
mc:Ignorable="d"
ShowInTaskbar="False"
全部评论 (0)
还没有任何评论哟~
