2 days left to register for the Silverlight Tour Training in Vancouver!!!
- When: July 27-29
- Where: Vancouver, Canada
- Registration: https://agilitrain.com/Workshop/Outline/Silverlight_Tour_Workshop
The Silverlight Tour is a three-day, soup-to-nuts breakdown of Silverlight. This includes learning the ins and outs of XAML, hosting in the browser, the tools and using Silverlight with the server. The class utilizes Silverlight 3 as well as the latest toolset from Microsoft (including Visual Studio 2008, Expression Blend 3, Expression Design 3, DeepZoom).
If you are interested, act now!!Technorati Tags: Silverlight training
Final version of Expression Studio 3 is now available online as free 60 days trial.
Expression Blend 3 was already available as RC since Silverlight 3 shipped some days ago, but we never had beta version of the rest of the suite, so here they are:
- Expression Blend 3
- Expression Web 3
- Expression Design 3
- Expression Encoder 3
Nice! installing all that right now…
As you know Silverlight 3 is released, among the new features, one of the first things you’ll notice is the disappearance of the asp:Silverlight control. This server control was available with Silverlight 2 to help you insert Silverlight app in ASP.NET pages. This asp:Silverlight control is no longer part of Silverlight 3 tools or SDK, the recommended way is to use the html Object tag or Silverlight.js approach. Note that if you have an existing Silverlight 2 application, you can continue to use the asp:Silverlight control, even if you migrate it to Silverlight 3 (you get it from the referenced System.Web.Silverlight.dll assembly, this is the one that is not part of Silverlight 3 anymore).
If you still want to use the asp:Silverlight control for new Silverlight 3 projects, you can get it here (with source code):
So… what if you would like to try the object tag?
As you know the minimum code to insert your Silverlight app in html is:
<object type="application/x-silverlight-2" data="data:application/x-silverlight," width="450" height="220"> <param name="source" value="MySilverlightApplication.xap"/> </object>
Note in the data element the trailing comma is required for Firefox.
Then you can add several <param> elements to customize the experience, but where to get the list of available params (no IntelliSense here)?
MSDN gives you a list in the Silverlight Plug-in Object Reference page, but you have to click on each page to get the details...
Comprehensive <Param> list
Here is a recap of all available parameters that you can pass to the Silverlight plug-in as <param>:
Parameter Description Type allowHtmlPopupWindow Specifies whether the
HtmlPage.PopupWindowmethod is allowed. Defaults to
truefor applications in the same domain, otherwise
Boolean autoUpgrade Specifies whether the plug-in should attempt to upgrade if
minRuntimeVersionis newer than the current Silverlight version. Default is true.
Boolean background Plug-in background color. Default is
Color with or without alpha (RGB, ScRGB) enableAutoZoom Indicates whether the host (for certain platforms) can invoke zoom behavior that increases the DPI. Default is true. Boolean enableCacheVisualization
Indicates whether to use a non-production analysis visualization mode, which shows areas of a page that are being GPU accelerated with a colored overlay. Default is false. Do not use in production code.
Boolean enableFramerateCounter Indicates whether to display the current frame rate in the hosting browser's status bar (IE/Win only). Boolean enableGPUAcceleration Indicates whether to use graphics processor unit (GPU) hardware acceleration for cached compositions, which potentially results in graphics optimization. (false by default) Boolean enablehtmlaccess Specifies whether the plug-in has full access to the browser DOM. Defaults to
truefor applications in the same domain, otherwise
Boolean enableNavigation Indicates whether the hosted content in the Silverlight plug-in can use a HyperlinkButton to navigate to external URIs. Default is all.
all: the hosted content can use HyperlinkButton to navigate to any URI.
none: the hosted content cannot use HyperlinkButton for navigation to an external URI. Relative URIs for internal navigation are still permitted.
Specifies the handler for a Zoomed event that occurs when the Silverlight plug-in content area receives a host-generated zoom event.
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="source" value="ClientBin/MyApplication.xap"/> <param name="onError" value="onSilverlightError" /> <param name="background" value="white" /> <param name="minRuntimeVersion" value="3.0.40624.0" /> <param name="autoUpgrade" value="true" /> <param name="enableRedrawRegions" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/> </a> </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
Note the iframe element is here for cross-browser compatibility. The presence of the iframe prevents the Safari browser from caching the page. Safari caching prevents the Silverlight plug-in from reloading when the user navigates back to a previously-visited Silverlight page. (Also it must appears exactly like in my sample: inline after the </object> tag)Technorati Tags: Silverlight
… very soon.