In this article, a discussion about several new features that did not fit in any of the above categories. We will discuss In-Browser HTML, PostScript and Tasks for TPL. Please review the Roadmap for the series before going any further.
The Roadmap for this Series
Included, the Roadmap for the series below as you may want to visit other sections as you learn Silverlight 5. I picked the following features as I thought that you may find them useful in your day-to-day work. If you want a specific topic covered then please leave it in the comments below.
- Introduction to SL5 – provides a brief history of Silverlight and relevant links.
- Binding – Ancestor Relative Source Binding and Implicit Data Templates.
- Graphics – XNA 3D API and Improved Graphics Stack.
- Media – Low-Latency Sound using XNA and Remote Control and Media Command (Keys) Support.
- Text – Text Tracking and Leading, Linked and Multi-column Text, OpenType Support, Pixel Snapped Text and TextOptions.
- Operating System Integration Part 1 – P/Invoke, Multiple Windows and Unrestricted File System Access in Full Trust.
- Operating System Integration Part 2 – Default Filename for SaveFileDialog, 64-bit browser support and Power Awareness.
- Productivity and Performance – XAML Binding Debugging, Parser Performance Improvements and Multi-core JIT for improved start-up time.
- Controls – Double and Triple click support, PivotViewer and ComboBox Type-Ahead.
- Other items – [This Post] – In-Browser HTML, PostScript and Tasks for TPL.
In Silverlight 4, we could use the WebBrowser control only in an “Out-of-Browser” application. This has changed in Silverlight 5 as we can now use the WebBrowser control in the browser (IE). It will however require that you make a few changes to your system. Let’s get started:
1) Update the registry – Locate the following keys:
If you running on a 32 bit machine,
and if you are running on a 64-bit machine,
change the UpdateConsentMode from a 0 to 1.
2) Sign the XAP File – Right click on the Silverlight application and go to properties. Choose Signing and check the checkbox Sign the .XAP file. Now click on the button Create Test Certificate. Enter any password that you want and hit the OK button. Now click on the More Details button.
Click on the Install Certificate button. Clicking on the button brings up the Certificate Import wizard. Click on the Next button and choose Place all certificates in the following store. Click on the Browse button. This will show you a Certificate Store. Choose Trusted Publisher and finish the wizard. Now repeat the same step to install this certificate in Trusted Root Certification Authorities.
3) Enable Out-of-Browser and Require elevated trust when running in-browser. Right click on the Silverlight application and go to properties. Place a checkmark in Enable Out-of-Browser and Require elevated trust when running in-browser.
Now let’s switch over to the MainPage.xaml and replace the Grid with the following code: