Exercise 1 - Creating an Out-of-Browser Application
In this exercise we'll see how to enable an application to run out-of-browser with elevated privileges. We'll also handle checking for application updates and detecting if the application is closing. Once those tasks are completed code will be added to automate Excel and Outlook.
Task 1 – Elevate Privileges and Handle Out-of-Browser Events
In this task you will modify the Silverlight project's properties and add code to the application to handle specific out-of-browser events. You'll also create a ChildWindow that will prompt the user to install the application.
Task 2 – Integrating Silverlight with Excel and Outlook
Silverlight 4 allows out-of-browser applications with elevated privileges to interact with desktop applications such as Excel and Outlook. In this task we'll add code to instantiate Excel through COM Interop and add data from a DataGrid to a worksheet. We'll also see how to interact with Outlook and dynamically add data from the Silverlight application into an email message.