Disabling the Silverlight Prompt in SharePoint 2010-http://fun.ly/25z
Disabling the Silverlight Prompt in SharePoint 2010-http://fun.ly/25z
Disabling the Silverlight Prompt in SharePoint 2010-http://fun.ly/25z
Microsoft Silverlight Learning Snacks: Learning Videos for Microsoft SharePoint 2010, Office 2010, Visual Studio 2010… http://wp.me/pSu2o-65
|
Ad:: SharePoint 2007 Training in .NET 3.5 technologies (more information). |
This is a free virtual event that you attend right from your computer.
I will be talking about using Silverlight in SharePoint 2010.
Description: In this session Sahil talks about how to wrITe, debug, develop, and deploy Silverlight applications effectively in SharePoint. The entire talk is almost no slides and all code, so there is plenty to chew on! Don’t miss!!
Starts:Sunday May 02, 2010, 11:00AM
Ends:Sunday May 02, 2010, 12:30PM
<a href="http://blah.winsmarts.com/2010-4-LIDNUG__Effective_Silverlight_wITh_SharePoint_2010.aspx”> Comment on the article ….
|
Ad:: SharePoint 2007 Training in .NET 3.5 technologies (more information). |
Where – Stavanger, Norway
When – 430 PM
More details – http://nnug.no/Avdelinger/Stavanger/Moter/NNUG-Stavanger—Effective-Sliverlight-in-SharePoint/
|
Ad:: SharePoint 2007 Training in .NET 3.5 technologies (more information). |
Okay this video is super duper cool!
You’ve heard of bing.com right? Have you tried out the silverlight maps on bing? WHAT? YOU HAVEN’T!? DAMMIT! You should! Seriously, the bing silverlight maps are way way way cooler than their google counterpart. They are simply mindblowing.
Now, what if I told you, you could integrate those, and the power of the bing geocoding api, AND, the bing search engine, AND routing capabilities, all on a silverlight map, and throw in the Yahoo geocoding api over a REST interface, all running inside SharePoint? And that too as a sandbox solution! (Take that you doubters/haters!)
No seriously! I am not joking!
In this video, I demonstrate exactly the above, all integrated and running happily inside of SharePoint 2010. Note that you can also make this work in SharePoint 2007. I used the Telerik Silverlight Controls to make all this happen. And as always, only about 2% of the video is slides, all of the rest is all hands-on code. The entire application, is written right in front of your eyes, in about an hour.
Plenty of good stuff here
Hope you like it! Have fun!
|
Ad:: SharePoint 2007 Training in .NET 3.5 technologies (more information). |
In this video, I demonstrate –
|
Ad:: SharePoint 2007 Training in .NET 3.5 technologies (more information). |
Okay my next video is online. In this video, I demonstrate the usage of the Telerik Silverlight grid working with a Business Connectivity Services (BCS) list over the Client Object Model. I use the Telerik grid to create a view on a BCS list, and demonstrate the rich value that a nice Silverlight grid can bring into SharePoint 2010.
The entire presentation is mostly all code. It’s about 1/2 hr in length.
At a recent SharePoint architects meeting at Microsoft, Tony & Tony from Acentium demonstrated some Silverlight integration with SharePoint. This inspired me to see how easy it would be to use Silverlight with the ARF framework.
Silverlight uses Xaml to produce the UI and XAML is just XML markup. Using XAML you can create a variety of effects, animations and layouts which can make your website more dynamic.
Silverlight is just an <object> tag in the page and so is really another HTML tag, just like any other. This can easily be added to the SharePoint page, either in the page layout or dynamically by another control.
<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="48">
<param name="source" value="/_layouts/ARF/ARF.Silverlight.App.xap">
<param name="onerror" value="onSilverlightError">
<param name="background" value="white">
<param name="minRuntimeVersion" value="2.0.31005.0">
<param name="autoUpgrade" value="true">
<param name="initParams" value="xamlContainerID=idMenu">
<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none">
</a>
</object>
<iframe style="visibility:hidden;height:0;width:0;border:0px"> </iframe>
As the ARF framework is based around XML and XSLT it sounded like it fit in very well with Silverlight and XAML.
ARF uses XSLT to produce the HTML and so there is no reason why it cannot XAML instead of HTML. By changing the XSLT used by the ARF controls to produce XAML its possible to output the XAML directly in the page. Once its in the page we can get the Silverlight control to dynamically load the XAML and display the results.
In order to achieve this I have added a new control to the ARF deployment. This control is packaged in to a XAP file and deployed to the _layouts folder. This can then be loaded when displaying Silverlight control using ARF. This control can then be rendered by the XSLT along with the XAML which will produce the UI.
Below is an example of a dynamic Silver light menu control.
<param name="initParams" value="xamlContainerID=idMenu"/>
….
<xml id="idMenu" style="display:none">
<xsl:apply-templates select="Items"/>
</xml>
Here we are passing parameters to the Silverlight control, telling it the ID of the control on the page which contains the XAML. The ARF Silverlight control will look for this ID, load the XAML and display the UI. It will also hookup event handling for any Buttons found in the XAML, allowing them to navigate to the supplied URL.
By way of a demonstration I have added some Silverlight navigation to the SPWorks website.
WindowsLiveWriter/SilverlightSharePointandARF_D319/image_thumb_1.png” width=”644″ border=”0″>
The links allow you to turn Silverlight on or off. This is done by using one of the ARF features, the PathManager control.
WindowsLiveWriter/SilverlightSharePointandARF_D319/image_thumb_2.png” width=”132″ align=”right” border=”0″> The PathManager is a special control in ARF as it does not generate and UI or XML, it is just there to modify the path of the XSLT. This allows you to create your layouts using XSL found in the ‘XSL Library’, but then later modify where the XSL is actually loaded from dynamically at runtime.
In the case of the SPWorks website we are using a cookie to store if Silverlight is on or not. The cookie is then used to load the XSL from a different location. The image shows the XSL for Silverlight is contained in a sub-folder of the main ‘XSL Library’.
Using this technique you can easily change the way your site is rendered, just by providing different XSL for the different situations.
The PathManager is fully extendable and so you can provide your own implementation. This way you can switch XSL locations dependant on your own criteria, possibly for different browsers or languages.
To see how the XAML is produced you can download the XSL for the SPWorks navigation.
Also, just for completeness, this could have been achieved another way with ARF. It is possible to get ARF to switch the master page used based upon a cookie value. I could have done this and modified the XSL location directly on the controls in the new master page. In this situation that didn’t seem to be the best solution, but it would have worked just as well.
A new release of ARF is available for download containing this new Silverlight control and XAP file. Feel free to use in your own projects as the Silverlight control is not dependant on the ARF framework.
Just a note about the ARF releases. ARF is released as and when new functionality or fixes are added. This way we hope to be able to respond to bugs and feature requests quickly. For each release there will be a WSP and the corresponding source. We recommend that you only use the latest version when starting a new project, when it contains a bug fix that you need or there is new functionality which will help your project.