

The next step is to add our existing Silverlight application to our solution.

From the project under solution explorer, delete ‘Sample.txt’ file and also delete the entry – Choose ‘Module’ from the SharePoint > 2010 section.

#How to upload file in silverlight sample code
Open MainPage.xaml file and replace the code with the following. To add a module, right click the SharePoint Empty project and add a new item. In the New Silverlight Application wizard check the 'Host the Silverlight Application in a new Web site'. The modules are used to deploy the files to SharePoint sites. Now let’s add a ‘Module’ to our SharePoint project. Now your project will look like the following – So let’s create an ‘Empty SharePoint 2010 Project’ with the name ‘DeploySilverlightApp’ as shown below –Ĭlick ‘OK’ and choose ‘Deploy as a Sandboxed Solution’ option by providing SharePoint Site URL –
