WPF实现托盘 private void OnNotifyIconDoubleClick(object sender, EventArgs e) { this.Visibility = Visibility.Visible; this.ShowInTaskbar = true; this.WindowState = WindowState.Normal; } private void Window_StateChanged(object sender, EventArgs e) { this.Visibility = Visibility.Hidden; this.ShowInTaskbar = false; this.WindowState = WindowState.Normal; } public void IconShow() { this.notifyIcon = new NotifyIcon(); this.notifyIcon.Text = "Hello, NotifyIcon!"; this.notifyIcon.Icon = new System.Drawing.Icon("AIM54.ico"); this.notifyIcon.Visible = true; notifyIcon.MouseClick += OnNotifyIconDoubleClick; //this.notifyIcon.BalloonTipText = "Hello, NotifyIcon!"; //this.notifyIcon.ShowBalloonTip(500); }


















































- 1
- 2
- 3
- 4
- 5
- 6
- 7

- 粉丝: 6
- 资源: 6

我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
