Hardcodet.NotifyIcon.Wpf
这个是使用系统托盘图标来完成通知的推送的,前半段请参照这里
推送通知的例子:1
App.TaskbarIcon.ShowBalloonTip("UIToy Notification", "Window Rect is null.", Hardcodet.Wpf.TaskbarNotification.BalloonIcon.Error);
这里我直接把TaskbarIcon
当作全局的静态变量定义在App.xaml.cs
里面了。
Notifications.Wpf
具体用法可以参见作者GitHub:https://github.com/Federerer/Notifications.Wpf
例子:1
2
3
4
5
6
7MaskWindowManager.notificationManager.Show(
new NotificationContent
{
Title = "UIToy Notification",
Message = "UI Analyzation Started.",
Type = NotificationType.Information
}, areaName: "WindowArea");