Generic webpart for hosting Silverlight content on SharePoint sites (WSS,MOSS)
Code
Plex
Open Source Community
Register
|
Sign In
|
CodePlex Home
Home
Downloads
Documentation
Discussions
Issue Tracker
Source Code
People
License
Close
RSS
All Project Updates
Discussions
Issue Tracker
Releases
Reviews
Source Code
Wiki & Documentation
RSS
By clicking Delete, all history, comments and attachments for this page will be deleted and cannot be restored.
View All Comments
|
Print View
|
Page Info
|
Change History (all pages)
Home
About Generic Silverlight Host WebPart
SharePoint and Silverlight when combined together provide a powerful platform for building Rich Internet Applications. The Generic Silverlight WebPart was inspired by the need to aovid going back to the SharePoint administrator and begging for a new webpart to be deployed each time you wanted to host some silverlight content. The focus was also on improving the user experience while editing the initialization parameters. A custom popup dialog has been provided to where an user can edit a comma separated string to specify the initializaiton parameters. Additionally, there is also a popup dialog that renders a Silverlight user interface to let the user edit the initialization parameters in a Grid like interface.
Quick Install Guide
If not done already, please add a MIME type entry for .XAP file extension as described in the section below.
Download
SharePointSilverlightHosting.wsp
Use
stsadm -o addsolution -filename {path to SharePointSilverlightHosting.wsp}
, followed by deployment to the web application of your choice using
Central Administration
or
stsadm
.
As an example, I have provided a dummy
HelloWorld.xap
to help you test the deployment. This could be any Silverlight Application
Download
HelloWorld.xap
file from CodePlex and upload it to a document library in your SharePoint web site.
Create a webpart page and add an instance of the
GenericSilverlightWebPart
to the page
In the webpart properties pane, select the field
Path to Silverlight Application
and provide the relative/absolute URL to the .XAP file which you have uploaded in the previous step.
Select the field
Initialization Parameters
to provide the name-value pairs that are required for your Silverlight Application to function.
Enabling IIS to allow .XAP file types
MIME types in IIS needs to be configured such that it can allow the smooth passage of files with the extension .XAP.
Should not take more than a couple of minutes. Please follow the steps in this article
http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/
.
Custom WebPart Properties
Plugin Width & Height
- This will govern the size of the Silverlight plug-in. To control the overall surface area of the webpart, please modify the Width & Height under the
Appearance
category.
InitializatIon Parameters
- You can use the popup editor OR click on the button
Init Params - Advanced
to edit the name-value pairs that will be fed into the Silverlight Application.
Installing the Silverview Application from MSDN
This is a wonderful Silverlight sample application that showcases the strengths of Silverlight & SharePoint web services
The original article can be accessed from the MSDN
site
. The compiled .XAP can also be downloaded from the
Downloads
section of this project.
Silverview uses the out of box SharePoint web services to implement a rich Explorer like user interface for navigating through document libraries.
To configure Silverview, the URL of the site needs to be specified whose Document libraries will be displayed within the application. This value should be specified using the
SPURL
init params property.
Example:
SPURL=http://myserver/sites/SomeSite
Last edited
Mar 5 2010 at 9:21 PM
by
saurabh_dasgupta
, version 16
2 people
are following this project (
follow
)
Download
Microsoft Public License (Ms-PL) This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 1. Definitions The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any additions or changes to the software. A "contributor" is any person that distributes its contribution under this license. "Licensed patents" are a contributor's patent claims that read directly on its contribution. 2. Grant of Rights (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 3. Conditions and Limitations (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
To install this application, save it and then open it. Opening it directly from Opera will not work correctly.
Current
CTP
Date
Tue Feb 23 2010 at 8:00 AM
Status
Alpha
Rating
No Ratings
1135 downloads
More
View all downloads
Join Us
Looking for passionate developers who are keen on enhancing the user experience of SharePoint with Silverlight.
Sign in
to join this project.
Complete this form to send a request to become a member of this project. Enter any comments that you wish for the project coordinators to see when approving your request, for example what role you would like to have in the project.
250
characters left
Activity
7
7
30
30
All
All
days
Page Views
17
Visits
15
Downloads
4
Application Runs
N/A
View Detailed Stats
Updating...
© 2006-2012 Microsoft
|
Get Help
|
Privacy Statement
|
Terms of Use
|
Code of Conduct
|
Advertise With Us
|
Version 2012.1.11.18365