当我最大化窗口覆盖Windows XP任务栏时,我想在最大化窗口时显示任务栏 [英] When i am maximizing the window is covering the Windows XP taskbar, I want to show the taskbar when maximize the window

查看:156
本文介绍了当我最大化窗口覆盖Windows XP任务栏时,我想在最大化窗口时显示任务栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

当我最大化窗口时,它覆盖了全屏,而Windows XP任务栏隐藏在我的窗口后面,我想在WPF中最大化窗口时显示任务栏,所以该怎么做..... .... ????

When i am maximizing the window then it is covering full screen and windows XP taskbar is hide behind the my window, I want to show the taskbar when i maximized the window in WPF, So how to do that.........????

推荐答案

如何最大化窗口?在代码后面还是使用预先提供的标题栏的最大化按钮?如果删除标题栏,然后在代码隐藏或直接在XAML中最大化窗口,则默认情况下,该窗口将处于全屏模式.然而, 您可以像这样在窗口上设置最大高度:

How do you maximize your window? Code-behind or by using the pre-supplied titlebar's maximize button? If you remove the title bar and maximize the window in code-behind or directly in XAML, then by default the window is going to be in full-screen mode. However, you can set a maximum height on the window like this:

我自己没有XP.我认为XP任务栏可能比Win7任务栏大一些,因此您可能必须将25更改为更大的数字.

I don't have XP myself. I am thinking the XP taskbar might be a bit larger than the Win7 taskbar, so you might have to change 25 to some bigger number.

 

this.MaxHeight = System.Windows.SystemParameters.VirtualScreenHeight - 25;

 


这篇关于当我最大化窗口覆盖Windows XP任务栏时,我想在最大化窗口时显示任务栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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