wpf 如何让当前窗口隐藏
2021-03-02 15:27
标签:this present als xaml 完成 box microsoft class min wpf 如何让当前窗口隐藏 标签:this present als xaml 完成 box microsoft class min 原文地址:https://www.cnblogs.com/lingLuoChengMi/p/13038733.htmlXMAL中
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("完成了");
上一篇:11 API