Silverlight Development in Sharepoint

Document Sample

Shared by: dailyhalla
Categories
Tags
Stats
views:
1909
posted:
2/26/2009
language:
English
pages:
16
Becky Isserman, B&R Solutions http://www.mosslover.com



What is Silverlight?

Web browser plug-in that allows animation, vector graphics, etc. (Microsoft’s Flash)  Kind of like a mini environment bundled into a plug-in (client side)  Uses XAML



 XML Based markup language  Not as many tags for Silverlight as WPF



Tools

Silverlight Tools for Visual Studio  Expression Blend



 Design Silverlight Controls



  





Expression Designer

 Create Graphical Controls



Expression Encoder

 Encode Media and Bundle it



Expression Media

 Can encode and change media formats



Deep Zoom Composer

 Can create images where you can zoom in and out



Getting Started with Silverlight





Steps:

 Install Visual Studio SP1  Install MOSS SP1 and WSS SP1



 Add System.Web.Silverlight.dll to



SharePoint Server (in solution file for webpart or feature)

○ C:\program files\Microsoft



SDKs\Silverlight\v2.0\Libraries\Server

 All Client Computers Need Silverlight



Version 2.0



Getting a Silverlight Project into SharePoint





More Steps:

 Create a ClientBin Directory in the Inetpub



with Read and Run Scripts Privleges or a Document Library  Add a Content Editor Web Part (CEWP) and reference the Silverlight Application  Add the XAP File to the ClientBin  Add a New Mime Type to Enable Silverlight Extensions in IIS



Getting a Silverlight Project into SharePoint





More Steps:

 Upload Files to a Document Library or the Client Bin Directory  Add a Content Editor Webpart with this html code:







Expression Blend vs. Visual Studio





Visual Studio

 All Mark up  No Drag and Drop Capabilities



 Event Handlers and Background Code



Behind Files





Expression Blend

 Allows Drag and Drop  Can use Mark up or Visual Interface  Properties are easier to change



Demo





“Hello World” Application (Expression Blend and VS 2008)



Getting a Silverlight Project into SharePoint





More Steps:

 Create a ClientBin Directory in the Inetpub



with Read and Run Scripts Privleges or a Document Library  Add a Content Editor Web Part (CEWP) and reference the Silverlight Application  Add the XAP File to the ClientBin  Add a New Mime Type to Enable Silverlight Extensions in IIS



Animating a Control

Go to Windows  Animation Workspace  Create a New Story Board  Add Timelines for Animation





Demo





Animation and Video



Databinding

Can pull SharePoint Data into Webservice (or use existing webservices)  Can read from XML Document or SQL Database  Must use Entity Framework (Linq to SQL, Linq to XML, etc…)





Demo





Databinding Demo



Drawbacks

 



Cannot use the Object Model

 Datasources can only be CLR or XML Files



Controls are a little weird

 x:…, doesn’t always use the normal .text or



.click



Databinding is different  Relies on a browser control that everyone may not have  Not so much supported by Linux





References

Hello World by Phil Wickland for SharePoint: http://philwicklund.com  Silverlight Demos, Visual Studio Templates, and more: http://www.silverlight.net  SilverPart: http://www.codeplex.com/silverpart  SharePoint Picture Library: http://www.sharepointevolved.com/blog/ Lists/Posts/Post.aspx?ID=27





Contact Information

 E-mail:



rebecca.isserman@gmail.com  Blog: http://www.mosslover.com  Twitter: http://www.twitter.com/mosslover  MOSS Comic: http://www.sharepointcomic.com




Share This Document


Related docs
Other docs by dailyhalla
Silverlight Development in Sharepoint
Views: 1909  |  Downloads: 15
Green Electronics Survey
Views: 1122  |  Downloads: 15
FTCmobile Complaint
Views: 2271  |  Downloads: 6
by registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!