How to add silverlight application as webpart in sharepoint 2010?
Following is the steps to add silverlight application as a webpart page.
- I assume that you've already created a silverlight application, Here I've created application named SampleSilverlight.
- Create an Empty sharepoint project by adding new project to solution.
- Now Add > New Item > Module and give the name SilverLight.
- Delete Sample.txt.
- On module right click and go to Properties.
- From Properties window select Project Output Refference.
- Now add new Refference by clicking on Add button.
- Set Deployment property as Element File and give Project Name respectively of your silverlight application.(In my case SampleSilverLight)
- Set relevent properties as shown in image bellow set Module URL as shown as well as File URL ,
- Now Right Click on Sharepoint Project and Add > New Item > Web parts
- Name it properly.
- Delete .cs file from it.
Set URL property to relevant path as you have set in step number 9.
OK that's it you've done with silver-light web part, build your SharePoint project and deploy it.
You'll see your web part in custom web part groups.
OK that's it you've done with silver-light web part, build your SharePoint project and deploy it.
You'll see your web part in custom web part groups.
No comments:
Post a Comment