如何显示来自 WPF 应用程序的 Toast 通知? [英] How do I show a toast notification from a WPF application?

查看:38
本文介绍了如何显示来自 WPF 应用程序的 Toast 通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个 WPF 4 应用程序,我想在屏幕右下角的单独窗口中的一个格式良好的框中显示一条消息.

I am building a WPF 4 application and I want to display a message in a nicely formatted box in a separate window in the bottom righthand corner of the screen.

我真的很喜欢印象笔记在应用程序与主服务器同步时的弹出窗口.

I really like the popup that Evernote has whenever the application syncs with the main server.

我该怎么做?

我是在我的应用程序中创建一个新窗口并创建一个新窗口来显示我的消息,然后使用计时器将其关闭,还是有更好的方法?

Do I just create a new window in my application and new up window displaying my message and then use a timer to close it, or is there a better way?

推荐答案

我发现这个解决方案非常适合我的应用程序:

I have found this solution to be wonderful for my applications:

http://www.hardcodet.net/projects/wpf-notifyicon

基本上,这个人创建了一个完整的系统来完成您的要求等等.

Basically, this guy created a whole system to do what you are asking for and more.

这篇关于如何显示来自 WPF 应用程序的 Toast 通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆