Add a Silverlight Application to the Lync 2010 Conversation Window Extension
Use the Microsoft Lync 2010 SDK to display Microsoft Silverlight applications in the Microsoft Lync 2010 Conversation Window Extension (CWE) during Lync 2010 conversations.
Displaying a Silverlight Application
When a Lync SDK contextual conversation starts, the application registered with the appropriate GUID opens. A Web application opens in the CWE, otherwise the application opens on the desktop. To display a Silverlight application in the CWE, embed the application in an HTML page and register the HTML application.
For more information about displaying a Silverlight application in the CWE, see Walkthrough: Write a Silverlight Application for the Extensibility Window.
For more information about registering applications, see Register Contextual Conversation Packages in Lync 2010.
Accessing the Conversation Object
In Lync SDK Silverlight applications use the LyncClient.GetHostingConversation method to get the Conversation object that hosts the CWE. The GetHostingConversation method only returns the hosting conversation for an application running in the CWE. It returns null for applications running on the desktop.
Conversation currentConversation = (Conversation) LyncClient.GetHostingConversation();