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("完成了");

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM