使用WPF应用程序在任务栏中自动隐藏 [英] Autohide in taskbar with WPF application

查看:930
本文介绍了使用WPF应用程序在任务栏中自动隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

 

我将系统任务栏设置为自动隐藏,然后我以最大化状态运行WPF应用程序。当应用程序处于最大化状态时,我将鼠标悬停在屏幕底部以查看任务栏,但它不会出现。找到下面的代码块。

Hi All,
 
I set the system taskbar to autohide, then I ran the WPF application in Maximized state. When the application is in maximized state, I mouse hover the bottom of the screen to view the taskbar but it does not appear. Find the code block below.

<Window x:Class="_189619.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:_189619"
      
        mc:Ignorable="d" WindowState="Maximized"
        Title="MainWindow" Height="350" Width="525" >
    <WindowChrome.WindowChrome >
        <WindowChrome  CaptionHeight="50"  ResizeBorderThickness="3"  >
            
        </WindowChrome>
    </WindowChrome.WindowChrome>
    <Grid>
        
    </Grid>
</Window>






 

任何解决方法显示TaskBar?

 

预付款。

 

问候,

Vinothini R


.
 
Any workaround to show the TaskBar?
 
Thanks in Advance.
 
Regards,
Vinothini R

推荐答案

下面的文章解释了这一切:

Below article explains it all:

https:// blogs .msdn.microsoft.com / llobo / 2006/08/01 / maximizing-window-with-windowstylenone-consideration-taskbar /

检查以下文章:

https://stackoverflow.com/questions/20941443 /正确最大化-wpf-window-with-windowstyle-none

https://codekong.wordpress.com/2010/11/10/custom-window-style-and-ac计算任务栏/

https://social.msdn.microsoft.com/Forums/vstudio/en-US/97d1ed9c -23fa-48c5-93d7-a9a8d039de07 / autohidden-taskbar -wont-appear-when-windowstatemaximized-and-windowstylenone?forum = wpf

注意:这个响应包含对第三方万维网站点的引用。 Microsoft提供此信息是为了方便您。 Microsoft不控制这些网站,也未测试在这些网站上找到的任何软件或信息;因此,
Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用互联网上的任何软件都存在固有的危险,微软提醒您在从互联网上检索任何软件之前确保您完全了解风险。

Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

最好的问候,

Bob


这篇关于使用WPF应用程序在任务栏中自动隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆