解锁电脑后 Wpf Ballon 的奇怪行为
我有一个 wpf 应用程序,每 x 分钟运行一些线程,我注意到,如果我阻止电脑并在一段时间后取消阻止它,则在我的电脑锁定期间应该显示的所有气球消息都会在我解锁时显示电脑(就像他们在等待图形用户界面回来一样)。 这是正常行为吗? 有什么办法可以避免这种情况吗?
I have a wpf application that runs some threads every x minutes and I noticed that if I block the pc and than unblock it after some time, all the balloons messages that were supposed to display during the time my pc was locked are displayed when I unlock the pc (like they were waiting for the gui to come back).
Is that a normal behaviour?
Is there any way to avoid this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这是否是有意的行为,但我认为在大多数情况下这是合理的。
这是一种查明电脑是否已锁定的方法 这样你就可以抑制弹出窗口(如果这是你想要的)
I don't know whether or not this is intended behavior but I think it is justified in most cases.
Here is a way to find out if the PC is locked so you can suppress popups (if that is what you want)