聚焦于应用程序时无法显示任务栏
我编写了一个 WPF 应用程序,当它打开并聚焦时,当我的光标悬停在底部边缘时,我无法显示任务栏(任务栏自动隐藏),无论应用程序是否最大化或调整为较小的大小方面。我必须手动单击键盘上的“窗口”开始按钮才能显示任务栏(当然也显示开始菜单)。
我发现在 SO - 自动隐藏中提出了类似的问题任务栏未出现 - 但在我的情况下,即使任务栏未最大化,任务栏仍然不会显示,并且我没有覆盖 MINMAXINFO
记录。应用程序 MainWindow 的 XAML 非常简单:
<ribbon:RibbonWindow x:Class="MySoftware.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
Title="My Software" Icon="Images\myLogo.ico"
x:Name="MainWindow1" Background="#FFE8E8E8" WindowState="Maximized" WindowStyle="ThreeDBorderWindow">
I wrote a WPF application, and when it is opened and focused, I cannot show the taskbar when my cursor hovers on the bottom edge (the taskber is auto-hidden), regardless of whether the application is maximized or re-sized to a smaller dimension. I have to manually click the "Window" start button on the keyboard to show the taskbar (of course that also show the start menu as well).
I found a similar question being asked in SO - Auto hide taskbar not appearing - but in my case the taskbar still won't show even if it's not maximized, and I did not override the MINMAXINFO
record. The XAML of application MainWindow is as simple as this:
<ribbon:RibbonWindow x:Class="MySoftware.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
Title="My Software" Icon="Images\myLogo.ico"
x:Name="MainWindow1" Background="#FFE8E8E8" WindowState="Maximized" WindowStyle="ThreeDBorderWindow">
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您使用的是 RibbonWindow,问题很可能就在那里。我正在使用第三方控件做类似的事情,并提交了错误报告,后来修复了。
Since you are using a
RibbonWindow
, the problem most probably lies there. I am doing something similar using a third-party control, and submitted a bug report, which was then later fixed.