使我的WPF应用程序全屏显示(窗口的任务栏和标题栏) [英] Make my wpf application Full Screen (Cover taskbar and title bar of window)

查看:708
本文介绍了使我的WPF应用程序全屏显示(窗口的任务栏和标题栏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使我的应用程序能够最大化显示到全屏,这意味着它也隐藏了Windows任务栏和标题栏。

I would like to make my application such that it can maximize to full screen means it hide the windows task bar and the title bar as well. And it should triggered by a button.

我正在尝试像这样开发我的应用程序窗口。

I am trying to develop the my application window like this.

添加我的代码段如下

 <controls:MetroWindow x:Class="EDUI.MainWindow"
            xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:local="clr-namespace:EDiscoveryCore;assembly=EDiscoveryCore"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="eDi"  BorderBrush="SkyBlue" BorderThickness="2" Height="999" Width="1071" WindowState="Maximized" x:Name="MainWindows">


推荐答案

尝试一下:

<Window ShowTitleBar="False" IgnoreTaskbarOnMaximize="True">

这篇关于使我的WPF应用程序全屏显示(窗口的任务栏和标题栏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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