• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Getting start with a Silver light application using VS2010

Getting start with a Silver light application using VS2010 

Step 1: Open Visual Studio 2010 and create a new Silverlight Application

37

 

Uncheck the checkbox [ ] “Host the Silverlight application in a new Web site”. We don’t need to host Silverlight in a separate web app since SharePoint will be the host.

38

 

Step 2: You can add the following code at MainPage.xaml for testing if you are new with Silverlight

 

39

 

Build the Application and your Silverlight Application is ready at this stage

Step 3: So, Develop your Silverlight application as per as your requirement. For Example: I developed a application like below. Let’s imagine this application is ready to deploy

40

 

 

Create a Empty SharePoint Project to deploy in SharePoint

Step 4: To Deploy Application in SharePoint

Create Empty SharePoint Project (Run As Administrator)

41

  1. Leave the sandboxed solution checked and click ok (Pop-up will ask you to choose to deploy as a sandboxed solution or a farm solution.)
  2. Set SharePoint Site URL where you want to deploy

42

 

  1. Add a new Module to the project

43

  1. Open the Elements.xml file and Edit the file to include the xap file that will be generated from the Silverlight application
Interested in mastering SharePoint Training? Enroll now for FREE demo on SharePoint Training.

44

 

  1. Now your application is ready to be deployed. Right click the SharePoint project and select Set as Startup Project and Deploy Solution.

Add Silverlight Web Part in SharePoint Site

Step 5: On the SharePoint site click the edit icon then the insert tab, select Web Part, and choose the Silverlight Web Part in the Media and Content category

 

45

Click Add and in the Silverlight Web Part dialog enter the value from the Url field in the Elements.xml file.

46

 

Configure Web Part to adjust size.The problem is the default size for the Silverlight Web Part is 400×300 but the application is bigger than 300.

47

 

Now Your Silverlight application Deployment Done!

48

For Indepth understanding of SharePoint click on

 

Summary
Review Date
Reviewed Item
Getting start with a Silver light application using VS2010
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Getting start with a Silver light application using VS2010"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.