wpf 如何让当前窗口隐藏

Posted lingluochengmi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了wpf 如何让当前窗口隐藏相关的知识,希望对你有一定的参考价值。

XMAL中
<
Window x:Class="WpfNoScreen.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" ShowInTaskbar="False" WindowState="Minimized" Visibility="Hidden"> <Grid> </Grid> </Window>
构造函数中 
// ShowInTaskbar="False" WindowState="Minimized" Visibility="Hidden" this.ShowInTaskbar = false; this.Visibility = Visibility.Hidden; MessageBox.Show("完成了");

 

以上是关于wpf 如何让当前窗口隐藏的主要内容,如果未能解决你的问题,请参考以下文章