Wpf托盘.rar

时间:2016-06-09 16:25:37
【文件属性】:

文件名称:Wpf托盘.rar

文件大小:61KB

文件格式:RAR

更新时间:2016-06-09 16:25:37

Wpf 托盘

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); }


【文件预览】:
WpfIcon.suo
WpfIcon.sln
WpfApplication1
----App.xaml.cs(311B)
----Window1.xaml(455B)
----Window1.xaml.cs(2KB)
----Properties()
--------Settings.settings(201B)
--------Resources.Designer.cs(3KB)
--------AssemblyInfo.cs(2KB)
--------Settings.Designer.cs(1KB)
--------Resources.resx(5KB)
----WpfApplication1.csproj(5KB)
----App.xaml(296B)
----obj()
--------Debug()
----bin()
--------Debug()

网友评论