wpf 如何让当前窗口隐藏

时间:2020-06-03 17:24:19   收藏:0   阅读:142
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("完成了");

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!