WPF“烤面包机"弹出窗口-如何关闭? [英] WPF 'Toaster' Popup - How to close?
问题描述
我正在使用以下内容来创建烤面包机"样式的弹出窗口: 创建弹出式窗口"toaster", Windows中带有.NET的通知
I'm using the following to create 'toaster' style pop-ups: Create popup "toaster" notifications in Windows with .NET
不幸的是,在消息消失"之后,任务栏中仍然有一个任务".显示多个弹出窗口后,每个打开的弹出窗口都有一个单独的任务",所有任务都堆叠在一起.
Unfortunately, after the message "disappears", there is still a 'task' in the taskbar. After showing multiple popups, there is a separate 'task' for each popup that was opened, all stacked on top of each other.
不透明度动画完成后如何关闭它们?
How can I close these after the opacity animation has completed?
推荐答案
我编写了自己的toast实现,也许您可以找到它的用法!很简单,您要做的就是:
I wrote my own toast implementation, perhaps you can find use of it! It's very simple, all you do is:
ToastMessage.Show("My message", "My Title");
您完成了! :)我会不断更新它,直到我认为它是完美的为止,但可以根据需要对其进行修改!我还没有添加动画和声音效果之类的东西.
And you're done! :) I'll keep updating it until I think it's perfect, but modify it as you wish! I'm yet to add things like animations and sound effects.
这里是链接: GitHub WPFToastMessage
这篇关于WPF“烤面包机"弹出窗口-如何关闭?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!