如何设置对话窗口前景 [英] How to set conversation window foreground
本文介绍了如何设置对话窗口前景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨。
我正在申请通知用户获取新的IM。
I'm making an application to notify users getting new IM.
我使用事件处理程序ConversationAdded并现在成功弹出一个通知窗口。
I use the event handler ConversationAdded and now successed to popup a notification window.
点击通知窗口的OK按钮后,我想打开新IM的对话窗口。
After clicking OK button of the notification window, I want to open the conversation window of the new IM.
有没有办法做到这一点?
Is there any way to do that?
谢谢!
推荐答案
ConversationAdded事件参数包括Conversation对象。
The ConversationAdded event arguments include the Conversation object.
这样,您可以使用Automation打开对话窗口,或全屏显示,或许多其他事情:
With that, you can use Automation to open the conversation window, or show it full screen, or lots of other things:
var automation = LyncClient.GetAutomation();
var window = automation.GetConversationWindow(conversation);
window.ShowContent();
window.ShowFullScreen(0);
-tom
这篇关于如何设置对话窗口前景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文