Advertisement

A guide to what has changed in the Silverlight 4 RC

UPDATE: Silverlight 4 is RELEASED!  READ HERE!

Silverlight 4At MIX10, Silverlight 4 released an update, the Silverlight 4 RC (release candidate).  A few things have changed since the beta which was released in November.  If you haven’t read my guide to Silverlight 4 you may want to check that out.  The features still exist, but there are some changes to the implementations of some of the features as well as some new ones.  Please go read the previous post to familiarize yourself with the features.  This post will be complimentary to that and identify new/changed.

First let’s get you going with the tools:

And since sometimes people just want to get going with learning resources here’s my top suggestions:

So here we go, here’s my brain dump of some key areas of what you’ll be seeing in the Silverlight 4 RC.  This is not all-inclusive, but I think a list of some that most will want to know about.

Changed New

A quick note about Visual Studio 2010 RC

The Silverlight 4 tools linked above target the RC release of Visual Studio.  There have been 2 patches to Visual Studio 2010 RC since it’s release.  It is recommended that you have these two patches installed prior to installing the Silverlight tools.  Information about these patches (and links to them) is available here.

RichTextBox (the control formerly known as RichTextArea)

Silverlight 4 introduced a new control for enabling editing and display of rich text.  (See original details here for RichTextArea.)  A few things have changed here, one key one being the name: RichTextBox.  This was to be more consistent with WPF and also based on your feedback.  Additional improvements were also enabling the ability to get the XAML that makes up the underlying runs and paragraph of the rich text.  This is helpful for saving off the data and re-hydrating later if desired.  It’s a simple property on the RichTextBox control (assuming the control name is ‘MyRichContent’):

   1: string richText = MyRichContent.Xaml;

In addition to that, there are also some new text selection and position APIs to enable you programmatically select text and/or know where the current position of the text is located.  This is best demonstrated in the ‘Silverlight Notepad’ sample application in the hands-on-lab area where you can see examples of it being used.

^ back to top

WebBrowser control

The beta provided us with a mechanism for hosting HTML content within an out-of-browser application.  This is still available to us, however some APIs have changed.  The HtmlBrush is now called the WebBrowserBrush to be consistent in naming and what it actually does.

You can view a video on using the WebBrowser control here.

^ back to top

Printing API enhancements

The printing API was enhanced to help developers query for the printer page size and the printable area.  Another change was where the ‘document name’ is provided.  It is now required and a part of the Print() method.  Before:

   1: PrintDocument doc = new PrintDocument();
   2: doc.DocumentName = "Sample Document";
   3: doc.Print();

After:

   1: PrintDocument doc = new PrintDocument();
   2: doc.Print("Sample Document");

You can view a video on using the printing APIs here.

^ back to top

Native automation (COM interop)

API changes in the naming of the native integration (COM interop) feature for trusted applications.  Before:

   1: dynamic excel = ComAutomationFactory.CreateObject("Excel.Application");

After:

   1: dynamic excel = AutomationFactory.CreateObject("Excel.Application");

Simple, but will catch you in a recompile :-).  You can view a video on using native integration here.

^ back to top

Language/script support

Silverlight now has extended language support, including Thai and Vietnamese.  Additionally we added support for multiple Indic scripts.  The following Indic scripts are now supported:

Script Language
Bengali Bengali, Assamese, Manipuri
Oriya Oriya
Malayalam Malayalam
Kannada Kannada
Tamil Tamil
Telugu Telugu
Gujarati Gujarati
Gurmukhi Punjabi
Devanagari Hindi, Marathi, Sanskirt, Konkani, Kashmiri, Nepali, Sindhi

^ back to top

Networking

In the beta, socket ports were still being restricted in trusted applications.  In this release, the port restriction for socket ranges in trusted applications is removed.

Additionally, the client networking stack (ClientHttp) has been enhanced to enable UploadProgress reporting and caching support.

^ back to top

User consent dialogs (webcam/clipboard/etc.)

We call those dialogs that require user permissions ‘consent dialogs.’  Your users will see these whenever code requires things like requesting device access for webcam/microphone, clipboard access, or quota increase for IsolatedStorage.  In the beta we showed these dialogs always and didn’t have a mechanism for enabling the user to determine if they wanted their consent preference saved.  That has changed in this release.  Consent dialogs now give the user the option to remember the setting which is persisted to their preferences only for that application and is in their control.  Here’s the new consent dialog for clipboard, webcam and full-screen pinning:

Silverlight consent dialog

And if you look at the Silverlight configuration dialog you’ll notice a permissions tab now where these permissions are set for the user, which they can change or delete:

Silverlight permissions dialog

This consent dialog ‘remember my preference’ setting is not available for IsolatedStorage quote increase however.  It doesn’t make sense to enable that really for that scenario.

^ back to top

XAP Signing for trusted applications

We think trusted applications (or elevated privileges applications) will be a widely used feature for this release.  We changed the install prompt dialog for trusted applications.  These are different dialogs than the typical out-of-browser install prompt as we need the user to have more information provided about them.  One key feature of a trusted application is the ability to code-sign the XAP file.  Here’s a trusted application install prompt from an un-signed application:

Windows:

Unsigned trusted application on Windows

Mac OSX:

Unsigned trusted application on OSX

And here is one from a code-signed one:

Windows:

Signed trusted application on Windows

Mac OSX:

Signed trusted application on OSX

Which would you feel more comfortable installing?  Notice that in signed applications your custom icon will show as well (even if you have the icon settings set up, if the app is unsigned they will not show).  The process of code signing is very simple and although I expect the tooling for Silverlight to improve on this, it is as simple as adding a post-build event task (or a task for automated builds) that uses the signtool.exe (installed with Visual Studio) to sign the XAP.  Here’s my post-build event task:

   1: "%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\signtool.exe" sign /v 
   2:     /f c:\users\timheuer\documents\authenticode\timheuer.pfx 
   3:     /p "MYPASSWORD" 
   4:     /t TIMESTAMP_URI_FROM_PROVIDER $(TargetName).xap

The PFX file is an exported certificate with my private key and password protected.  You can acquire code-signing certificates (normal Authenticode ones) from providers.  We were thankful to get assistance in testing this feature from the following providers who can provide you code-signing certificates for your organization:

All of the above provide Authenticode code-signing certificates and are trusted certificate authorities (CA) on Windows.  A trusted CA means that their root certificates are already a part of Windows verification.  The process of obtaining one is not instant so plan ahead.  There is a specific organizational verification process that occurs which may require documentation of proof of the organization and a few phone calls.  Once you have these certificates you will be on your way to providing even more trusted applications to your users.

NOTE: Thawte code-signing certificate requests should be made from a Windows XP machine as their current process does not support Windows Vista or Windows 7.  If you use Vista/7 you will not be able to export to a PFX file for automated build or to have your certificate stored on other machines.  Read each instructions carefully.

You can also sign your XAP using self-signed certificates.  If you do so, it is likely that you are not a trusted CA on machines and would have to instruct your users further.  In my opinion, it is better to acquire a trusted CA cert for external applications.  Take a look at Jeff Wilcox’s epic post on Code Signing 101.

A special note on trusted applications…please read!  If you want to take advantage of using the update features of Silverlight for your application (aka CheckAndDownloadUpdateAsync), then your application must be signedIf you do not sign your XAP for a trusted application it cannot auto-update.  Self-signed works here to, but don’t get your application in a state where it cannot be updated automatically!

You can view a video walk-through of XAP signing here.

^ back to top

Custom window chrome

One of the more requested features of trusted applications is the ability to customize the ‘chrome’ around the window.  The chrome area refers to the standard OS-specific border and title bar that a typical out-of-browser application will receive.  In this release we give you the ability to customize this for your users.  The Visual Studio tools also build in the capability to make this easier for you:

Window Style setting options

You can see there are a few options to choose from for window types.  Right now we do not support transparent windows or irregular shapes but are aware of the desire to have these.  Here’s an example of the Facebook client before:

Silverlight Facebook Client (beta)

and with custom window chrome:

Silverlight Facebook Client custom window

You’ll notice that in the custom window mode that since you don’t have the OS-specific title bar with minimize/maximize/close that you’ll be responsible for doing that.  That also includes handling the window moving and resizing events.  We enable APIs for you to do all of this easily. 

You can view a video on customizing window chrome and handling resizing and moving here.

^ back to top

Pinned full-screen mode

Are you a developer with multiple monitor setup?  I’m jealous.  If you’ve used silverlight you’ve no doubt run into a situation where you’ve put something in full-screen on one monitor and anticipated being able to work on other stuff in the other monitor.  Maybe you’re watching a Netflix movie while working?  You’ve likely experienced the issue that the full-screen mode goes back to regular when activity occurs in the second monitor.

We’ve changed that to enable the developer to prompt for permission to 'pin’ the Silverlight application to the monitor.  This will prompt the consent dialog option (with preference remembering) to get the user’s permission.  The code is extremely simple:

   1: App.Current.Host.Content.FullScreenOptions = System.Windows.Interop.FullScreenOptions.StaysFullScreenWhenUnfocused;

Once that is implemented, the full-screen application will remain pinned until the user hits ESC key or until you change the IsFullScreen mode in the code for them.

You can view a video on using the full-screen pinning mode here.

^ back to top

ContextMenu control

In the beta we introduced the right-click event handling capabilities.  In most cases this would be used by developers to implement context menus.  The Silverlight Toolkit for March 2010 release now provides a ContextMenu control for you to use and wire-up for this event.  It’s similar to the one Jesse Bishop created for the beta, so if you’ve used that it should be familiar.  It also supports ICommand too!

You can get the ContextMenu control and other great controls by ensuring you download and install the Silverlight Toolkit March 2010 release.

^ back to top

SLLauncher silent installs

One of the features we added in this release was using the sllauncher.exe (which is the program that assists in out-of-browser applications) to provide silent install capabilities for your applications.  The primary scenario here would be something like CD-based installation situations.  Using a command like this:

   1: "%ProgramFiles%\Microsoft Silverlight\sllauncher.exe"  
   2:     /install:"D:\deploy\demoapp.xap"  
   3:     /origin:"http://foocompany.com/apps/ClientBin/demoapp.xap"  
   4:     /shortcut:desktop+startmenu  
   5:     /overwrite 

would enable you to deploy an application in this type of a situation.  Setting the origin flag here enables the application to determine where it would get future updates from if CheckAndDownloadUpdateAsync methods are called within the application.

^ back to top

WCF RIA Services Toolkit

If you read above you’ll know that installing the Silverlight 4 Tools for Visual Studio also automatically installs the WCF RIA Services framework for you.  This release the RIA Services team also has a toolkit of their own.  After installing the RIA Services Toolkit you’ll get:

  • LinqToSql DomainService
  • SOAP endpoint – enabling exposing a SOAP endpoint for your DomainService
  • JSON endpoint – enabling exposing a JSON endpoint for your DomainService
  • ASP.NET DomainDataSource – enabling your ASP.NET application to talk to your DomainService

This is a separate install that you must complete.  For more details on this toolkit, visit Deepesh’s blog.

If you aren’t familiar with WCF RIA Services, you can view an introductory video here.

^ back to top

Summary

It’s been a fast pace since getting the Silverlight 4 beta in your hands in November.  We’ve had a lot of work to do to finish things up and implement some new key features.  We are very excited about this release of Silverlight 4 for developers and look forward to seeing the great applications you build with it!

Be sure to visit the MIX10 site for video recordings of various Silverlight-related presentations as the event is happening and as reference later on!  I really encourage you to view the keynote to see some new consumer-facing application experiences built on Silverlight, like eBay, Associated Press (Windows Phone 7)

Hope this helps!  Be sure to subscribe here via RSS or email and if you’re on Twitter you can follow me there as well for Silverlight updates/resources


This work is licensed under a Creative Commons Attribution By license.

  1. 3/15/2010 10:39 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Thanks Tim, was overwhelming but this post helps loads!
  2. 3/15/2010 10:39 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Hi Tim,

    great post and great news. What I thought would also be in the release is Drag'n'Drop-Enhancements. Up to now there are no DragDropEffects. That would be great e.g. for the DragEnter-Event...

  3. 3/15/2010 10:43 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Tim, each of the links (for the Silverlight tools for RC and the Silverlight toolkit) seem to take me to the Beta 2 versions of the tools.
  4. 3/15/2010 10:43 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Some nice improvements.

    Did the bug where you couldn't databind to dynamic objects get fixed?
  5. 3/15/2010 10:59 AM | # re: A guide to what has changed in the Silverlight 4 RC
    James - there may be some initial CDN caching issues so try again in a few minutes/hour/later today. I promise we hit publish at 10:15 :-)

    Kevin -- no binding to dynamic objects in this build.
  6. 3/15/2010 11:05 AM | # re: A guide to what has changed in the Silverlight 4 RC
    The links are for the beta 2 tools!
  7. 3/15/2010 11:13 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Great work by Team Silverlight again !!..Congrats ! :)
  8. 3/15/2010 11:16 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Caching issues resolved - RC tools it is! :-)
  9. 3/15/2010 11:33 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Tools are RC, Toolkit still Beta.
  10. 3/15/2010 12:03 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Hey Tim, great post, just got a question, do we have to uninstall something before installing the tools above? If so, what should be remove?
  11. 3/15/2010 12:12 PM | # re: A guide to what has changed in the Silverlight 4 RC
    BTW that full-screen pinning mode is a HUGE win for the application we are developing.
  12. 3/15/2010 12:14 PM | # re: A guide to what has changed in the Silverlight 4 RC
    i love indic scripts support (Tamil,Telugu,Hindi..). thank you very much Tim! Silverlight 4 rocks!
  13. 3/15/2010 12:59 PM | # re: A guide to what has changed in the Silverlight 4 RC
    You post mentions that Silverlight 4 RC is compatible with Visual Studio Express 2010 RC, but the downloads for VS2010 express are still 2010 beta 2.
    Is the RC still propgating through the CDN?
  14. 3/15/2010 1:31 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Any idea when the March 2010 drop of the Silverlight Toolkit will be available? Current version on CodePlex is still November 2009... Thanks!
  15. 3/15/2010 1:37 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Is there any plan to support WPF applications for WCF RIA Services?
  16. 3/15/2010 2:36 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Great post Tim. One piece of feedback though - I am excited to see the full-screen pinning mode but I'm not sure about the usability. When I click the "go to full screen" button, why should I read a paragraph of non-trivial text with a checkbox and 2 buttons if, say, I'm on a single monitor setup or my intention is not to work while I watch a video. Wouldn't it be better if this dialog came up only when I interact with some other application? I can imagine that, if most SL4 apps will want to utilize this great new addition, it will be quite annoying to confirm this dialog over and over even in situation where I shouldn't need to make this decision upfront.
  17. 3/15/2010 2:42 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Borek -- the consent dialog is *only* shown if the developer has set the option for pinning. There is no way for the dev/app to know if it is single or multi-monitor to detect that. As to over-and-over...that's up to the user -- the user can choose to allow the function and not see it again for that app.
  18. 3/15/2010 2:59 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Thanks a bunch for the update Tim.

    Arun
  19. 3/15/2010 3:46 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Fullscreen pinning FTW! I've spent a lot of time creating user-scripts and bookmark-lets that resize video players so that they can be viewed "fullscreen" without closing on multiple monitors. Glad to hear that Silverlight will allow developers more control in this area. Keep up the great work!
  20. 3/15/2010 3:52 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Hi, Tim,

    How about Khmer (Cambodia) Language. When will it support?
    If possible I would suggest Silverlight 4 final version should includes it.

    Thx
  21. 3/15/2010 7:12 PM | # re: A guide to what has changed in the Silverlight 4 RC
    I don't see why "fullscreen but unfocused" behavior has anything to do with the developer. The first time a fullscreen app is defocused, put up a "lightbox box" prompt asking if that was the right behavior.
  22. 3/15/2010 7:16 PM | # Can't wait to use it!
    Great, I'll definitely do something on the Silverlight platform. Thanks for the good job you've done!
  23. 3/15/2010 7:22 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Great work by Silverlight Team..supports Indic is really cool.
  24. 3/15/2010 9:13 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Thanks for the list Tim. Do you know if the clipboard will support images?
  25. 3/15/2010 10:15 PM | # re: A guide to what has changed in the Silverlight 4 RC

    Tim,

    I just spend the weekend worjing on a context menu control.... I should have guessed you guys would be addin one.
  26. Gravatar
    3/15/2010 10:37 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Hurray, Tim!

    Do we have a go live license with this release? And when can we expect a RTM release?
  27. 3/15/2010 11:11 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Thanks team for supporting Indic in this release
  28. 3/15/2010 11:20 PM | # re: A guide to what has changed in the Silverlight 4 RC
    JamesR - no 'object' support in clipboard right now.

    Steve - :-)

    Jay - no go-live for RC. RTM soon.
  29. 3/16/2010 1:51 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Tim, imagine that in one year when all apps are SL4 or newer and that full-screen pinning is so popular that every app wants to have it, I will have to confirm this dialog for every SL app I will ever use which will be annoying - even more so on single-monitor setups where this dialog simply doesn't make sense (single-monitor setups are like 98% of the market so I'd be very careful not to annoy all those people).

    That's why I would suggest this workflow instead:

    - The developer specifies that attribute to opt-in for the full-screen pinning mode, same as now

    - When the app goes full screen, it simply does that and shows no consent dialog

    - When the user turns off full-screen from within the app, again, no dialog is shown. So for single-monitor setups, although the app is not aware of it and have no means to detect it, the experience would be smooth, same as with SL3.

    - However, when the user interacts with some other application on another monitor, the SL4 app would *now* display the consent dialog, asking whether to stay in full screen mode, having the checkbox etc.

    So the experience would be smooth for single-monitor setups and secure for multi-monitor ones. Of course, another option would be a system-wide configuration option that could be set by the user - I would prefer that but maybe there are some security implications that I am not fully aware of. Anyway, the simple change in workflow should get rid of most usability problems I would think.
  30. 3/16/2010 2:25 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Fantastic stuff. And finally I can install VS2010 RC!

    Quick question - the March toolkit isn't available yet; will the November toolkit still work with SL4 RC?
  31. 3/16/2010 2:27 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Hi Tim,
    visual web developer express RC is forgotten ? (latest ver Beta 2)

    the smallest install for RC is professional, 2 GB T_T
  32. 3/16/2010 6:26 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Hi Tim,

    I installed SL4 toolkit and RIA services for VS2010, but now all the projects in VS2008 which use RIA services (and SL3) are broken and can't compile anymore, the framework for VS2008 was uninstalled... Do you have a solution to fix that ?

    Best Regards,
    Vincent

  33. 3/16/2010 9:02 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Hi,

    I installed Visual Studio 2010 RC and this new SL4 toolkit but now, the designer doesn't work. In WPF, the designer works well but not with a silverlight application. I've got the following exception :

    System.Runtime.InteropServices.COMException
    at Microsoft.Expression.Platform.Silverlight.Host.SilverlightControlSite.LoadRuntime()
    at Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainCore()...


    Anyone got the same problem ?
  34. 3/16/2010 10:27 AM | # COM Interop changes missing
    Hi Tim,

    I've got the following error when using Automation :

    System.NotSupportedException: Named parameters are not supported by the Automation layer. Use positional parameters instead.

    It seems that COM Interop is not only remaning from ComAutomationFactory to AutomationFactory.

    dynamic excel = AutomationFactory.CreateObject("Excel.Application");
    dynamic workbook = excel.Workbooks.Open(FileName: filePathName, ReadOnly: true);

    does not work anymore!

    Is this removed in Silverlight 4.0 RC?

    Thanks in advance,
    Daniel
  35. 3/16/2010 12:45 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Where can I find RX in SL4 RC?

    I cannot understand why its so difficult for me to get RX to work in it, its like RX does not exist for SL4??

    Please help.
  36. 3/16/2010 1:03 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Tim:

    What is the silent install and OOB install from an installer on CD story for SL4 Mac?
  37. 3/16/2010 1:12 PM | # re: A guide to what has changed in the Silverlight 4 RC
    I saw the demos and downloaded SDK 4 RC, however I see that WebBrowser doesnt offer any navigation events at all, that means we never know what is happening after loading first page.
  38. 3/16/2010 11:57 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Tim, I have no clue where to give feedback on this, I've been trying to bring this to someone's attention since the Beta. The problem is that the drag-n-drop support is very limited. It is useless if someone wants to drop a folder full of files. Right now we are forced to use a buggy Java FTP Applet to let customers upload files via our website. Silverlight 4, especially with the new drag-n-drop support, would be great to replace this with an expanded and refined interface.

    What I think would be a great compromise would be that when a user drops a directory that the applet is granted read access to that specific directory and those below it. Even if it's not possible to get this working with drag-n-drop, a FolderBrowserDialog with those same security semantics would be very useful.

    This use-case is somewhat feasible with OOB and elevated trust but only if the user drops a file/folder from My Documents, Pictures, Music, or Video; Desktop isn't even included?? I see, so the pictures and things on the desktop are sensitive, but the CompetitorTakeover.docx in My Documents isn't?

    I hope you can get this feedback to someone in the know, I'm guessing it's too close to the final bell to even consider changes before RTM, but I can always hope.
  39. 3/17/2010 2:41 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Hi Tim,

    When will the Silverlight toolkit 4.0 RC be published on the CodePlex site?

    It has been a few times 10:15 since your post on 3/15/2010 10:59 AM :-)
  40. 3/17/2010 9:21 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Great summary. I can't wait to migrate my apps from SL3
    <minor>
    The "#custom-windows-chrome" inpage link is bust
    </minor>
  41. Gravatar
    3/17/2010 10:44 AM | # re: A guide to what has changed in the Silverlight 4 RC
    +1 FolderBrowserDialog My.... != Optimal.Value

    My2cents
  42. 3/17/2010 3:30 PM | # re: A guide to what has changed in the Silverlight 4 RC
    I believe Bidirectional/Right-to-left support was also added
  43. 3/18/2010 7:02 AM | # SLL
    Are there any plans to make a simple stand-alone xap installer for OOB applications? I think it would be great to have an executable wrapper that will check and download (if required) latest version of the plugin and run sllauncher with predefined parameters.

  44. 3/19/2010 3:29 AM | # re: A guide to what has changed in the Silverlight 4 RC
    The latest of the SL Toolkit on codeplex is still "Beta November 2009"!
  45. 3/19/2010 6:32 AM | # re: A guide to what has changed in the Silverlight 4 RC
    I have the same problem, i install the silveligth tools 4 rc and the designer dont' work.
    System.Runtime.InteropServices.COMException

    at Microsoft.Expression.Platform.Silverlight.Host.SilverlightControlSite.LoadRuntime() at Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainCore() at Microsoft.Expression.Platform.Silverlight.SilverlightDomainManager.CreateDomainInitial() at Microsoft.Expression.Platform.Silverlight.SilverlightPlatformCreator.Initialize() at MS.Internal.Platform.SilverlightPlatformImpl.Initialize() at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized() at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.EnsurePlatformInitialized() at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String originalIdentifier, Boolean isGlobal, String identity, FrameworkName frameworkName, AssemblyName appAssemblyName, IVsHierarchy hierarchy) at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProviderWorker(String identifier, IServiceProvider provider) at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identifier, IServiceProvider provider)
    My System is visat x64 and Italian language.
    Garropoli Remo
  46. 3/19/2010 1:03 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Silverlight 4 RTW is scheduled for April, or will it be later?
  47. 3/21/2010 5:55 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Great article Time. really it help me to get a better understanding of what is new with Silverlight 4.0 RC.

    Thanks buddy..
  48. 3/22/2010 2:56 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Hi Tim,
    Where is visual web developer express RC ?
    Can you please provide the link for it.?
  49. 3/23/2010 4:20 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Vincent -- Once you install the VS2010 RIA Services build, that's what you have -- the VS2008 version will no longer work. RIA Services does not run side-by-side.
  50. 3/23/2010 4:22 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Daniel (re: named params) -- I think this is known -- and named params may not have been intended to be supported -- I'll have to look into this.
  51. 3/23/2010 4:25 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Adam (CD install for mac) -- right now we don't have something like an applescript equiv.
  52. 3/23/2010 9:57 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Josh - you should be able to drop multiple files (can't test right now) but not a folder.
  53. 3/23/2010 10:02 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Aldo.net - Bidi/RTL was in the beta already.
  54. 3/23/2010 10:04 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Dennis (stand-alone installer) -- you can do this in SL4 RC with options with sllauncher.exe.
  55. 3/23/2010 10:06 PM | # re: A guide to what has changed in the Silverlight 4 RC
    James (release date) -- As ScottGu said at MIX -- about a month.

    All - The Toolkit unfortunately had some last minute issues and was deemed not stable for the build. We'll wait for RTM for that one -- November 2009 will still work with this build of RC.
  56. 3/23/2010 10:08 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Jaykumar - apparently for the RC they don't have an express -- not sure why though?
  57. 3/24/2010 5:54 AM | # Stand-alone installer
    Tim,

    Yes, I can do this. But I need an executable container for my xap that will download silverlight (if required) and start sllauncher. In other words, I need something for sl-less users to download from 3rd-party websites.

    It's not a big deal to implement this functionality, but it forces each developer to reinvent the wheel. Worst case is MacOSX for developers not familiar with Objective-C. They possibly don't have a mac at all.

    I also believe that unified installer would be an inexpensive way to increase silverlight adoption rate for a couple percents per year.
  58. 3/26/2010 4:35 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Saw the new developer runtime. Thought it made my day.
    Then it said, the app was created using an expired beta version.
    so had to do the entire VS2010RC 2GB installation ... and update the tools.
    Has some breaking changes.. but we should be able to release out a build of our application to the client today.

    Working with it.. Already liking it!!
    Excellent work guys.

  59. 3/27/2010 3:08 PM | # re: A guide to what has changed in the Silverlight 4 RC
    What happened with regards to the rumors of Applescript (or similar) support for OOB apps on the Mac?
  60. 3/28/2010 11:09 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Andy - they were rumors ;-) -- it is something that we will continue to look at but just not enough time in our budget for SL4 release.
  61. 4/1/2010 11:27 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Hi.
    When using the following code under Visual Studio Development Server it works!!
    using (dynamic outlook = AutomationFactory.CreateObject("Outlook.Application"))
    {
    dynamic mail = outlook.CreateItem(0);
    mail.Display();
    }

    But when I change it to use "Custom Web Server", It fails!!
    with the message "failed to create an object instance for the specified ProgID"
    Can anyone explain why?
  62. 4/1/2010 11:33 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Hans -- it shouldn't make a difference. The code is executing on the client. As long as the client has OUtlook, it should work.
  63. 4/1/2010 11:41 PM | # re: A guide to what has changed in the Silverlight 4 RC
    But I have Outlook, and it works fine, when I start using dev server, but not else?? (I run the code locally in both scenarios..)
  64. 4/1/2010 11:44 PM | # re: A guide to what has changed in the Silverlight 4 RC
    This works however in both scenarios ??
    dynamic excel = AutomationFactory.CreateObject("Excel.Application");
    but not
    dynamic outlook= AutomationFactory.CreateObject("Outlook.Application");

  65. 4/2/2010 8:48 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Hans - is there already an instance of outlook.exe running. I've noticed the Outlook API can be tricky a bit. You might even try to GetObject on the instance instead of creating a new one -- it might be getting hung up there.
  66. 4/2/2010 1:39 PM | # re: A guide to what has changed in the Silverlight 4 RC
    dynamic outlook = AutomationFactory.GetObject("Outlook.Application"); FAILS. (even if outlook is running)
    dynamic outlook = AutomationFactory.CreateObject("Outlook.Application");
    Works ONLY if if Outlook is closed... ??
  67. 4/7/2010 10:37 AM | # re: A guide to what has changed in the Silverlight 4 RC
    For "API changes in the naming of the native integration (COM interop) feature for trusted applications. ComAutomationFactory to AutomationFactory" it would be nice to also note the namespace change to System.Runtime.InteropServices.Automation.
  68. 4/15/2010 1:45 PM | # re: A guide to what has changed in the Silverlight 4 RC
    SL 4 has cool improvements, but is there any 3d acceleration with gpu-usage?
  69. 4/16/2010 7:03 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Hey i know it's out of topic but i just find that Tim looks like Tom Hank ^^

    Context menu is very nice now i didn't need other control like Telerik or Liquid (vectorlight) anymore.

    Printing support still need enhancement (support of printing a X page(s) document without having to calculate the height of your document ... ^^)

    But it's better than crystalReport or else ... :)

    Good work & still a pleasure to read your article !
  70. 4/16/2010 7:45 AM | # Sockets
    Hopefully you're still checking these comments, but I have concerns over the socket restrictions being removed not going far enough. Can trusted applications communicate on any socket to any host? I'm still looking for a way to create an FTP client within silverlight as a trusted application and I want to know if that capability is there. I stopped using Silverlight because of this restriction and wanted to see if this release made it feasible for me to return.

    Thanks.
  71. 5/8/2010 8:03 AM | # I am having these same problems iwth VS2010 and SL 4
    I am having the same problem with the XAML designer failing. I am using the new VS2010 full production version. When I installed SL 4 it broke VS2010 SL XAML designer. I have invested over six hours trying to resolve this issue. If I cannot find a solution in about two more hours I will remove SL4 indefinitely. I have to get my work done!
  72. 5/8/2010 8:21 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Kellen -- see the updated release of SL4 -- trusted applications have no port restrictions on sockets.

    Joe -- did you have a previous version on the machine prior to upgrading?
  73. 5/20/2010 6:38 AM | # re: A guide to what has changed in the Silverlight 4 RC
    Updating Silverlight 4! =D

    Thks
  74. 6/22/2010 1:02 PM | # re: A guide to what has changed in the Silverlight 4 RC
    Great work on the Silverlight 4 release!

    Question: For the SL4 Beta, Ning Zhang previously said “there is no visual for the dragged object or DragDropEffects.” Is this also the case in the final Silverlight 4 release?

    When dragging an image from Windows Explorer to a Silverlight ListBox, it will be extremely useful to customize the cursor appearance to (a) have the image thumbnail along with the cursor, and (b) have a different style cursor depending upon whether the target element has AllowDrop enabled or not.

    Is this possible?

    Thanks!
  75. 6/22/2010 7:16 PM | # re: A guide to what has changed in the Silverlight 4 RC
    very nice post! thanks
  76. 6/24/2010 2:30 PM | # re: A guide to what has changed in the Silverlight 4 RC
    great workt! nice blog!

 
Please add 1 and 1 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)