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("完成了");
原文地址:https://www.cnblogs.com/lingLuoChengMi/p/13038733.html