FeaturePics API Demo - Silverlight Update

I have previously blogged about how to use Silverlight 2.0 Beta to create a FeaturePics API demo.

FeaturePics API Demo - Part 1
FeaturePics API Demo - Part 2

On 10/14 Silverlight 2.0 was released with various breaking changes from the Beta as documented on this Silverlight Blog.

As you know from FeaturePics API Demo - Part 1, this demo was a modification of Scott Guthrie's eight part tutorial Silverlight 2 End to End Tutorial: Building a Digg Search Client, which has also been updated to Silverlight 2.0. My update has once again followed Scott's lead in that he replaced the discontinued  WatermarkTextBox Control with a simple TextBox control, and I have done the same. This caused the helpful disappearing text in the TextBox to no longer appear, which is the only obvious change.

There are a few additional changes that are documented in Silverlight Blog. The ones I made are as follows:

Breaking Change #1. Your Web Page.

If you have a project already developed for beta-1 or beta-2 you will need to make an adjustment to your web page that hosts the Silverlight control. For an HTML page change you will need to change the MIME type. To do this, open your HTML Page, change “x-silverlight-2-b1” or “application/x-silverlight-2-b2” to “application/x-silverlight-2”.

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">

Breaking Change #4. Cross Domain Hosts.

Cross domain hosts of Silverlight must set the right MIME type for XAP (application/x-silverlight-app)

Breaking Change #16. ContentPresenter and ContentControl.

The following properties were removed from ContentPresenter and ContentControl:

  • TextAlignment
  • TextDecorations
  • TextWrapping

The URL remains the same: FeaturePics API Demo. This one does not work on the MAC.

A somewhat simpler page is at: FeaturePics API Demo - Simple Page.  This one does work on the MAC. The only difference is in the html page containing the control.

19. October 2008 01:30 by Kal | Comments (0) | Permalink
Comments are closed

Calendar

<<  April 2014  >>
MoTuWeThFrSaSu
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

View posts in large calendar

Month List