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

California Proposition 7 - How to vote?

I got my vote by mail ballot, and now I have to figure out how to vote. Most of the propositions an races are pretty easy, but Prop 7 is not. Most of the people I would normally listen to have come out against it. But the argument appears to be: it would be very hard, maybe impossible to meet the goals in the proposition.

I went looking for answers and found a lot of opinions:

Prop 7 opponents

Surprise opponents to renewable energy measure - Some reasons to like it

Renewals are not "practical" right now.

Implies that because a rich guy paid to get it on the ballot, it must be bad. But it has links to both supporters and opponents.

Prop 7 supporters

Looks like the "official hit piece" from the opposition

The state is already doing enough. Would not want to rock the boat.

Well, that is enough research, at least for now.

On balance, I think I will vote for it. Something needs to create some urgency in energy use. This proposition may well be flawed, but it is not "business as usual".

9. October 2008 19:55 by kal | Comments (0) | Permalink

Thoughts

My friend JCF has started a blog named thoughts. Today was her first post on, what else, thoughts.

6. October 2008 08:40 by kal | Comments (0) | Permalink

Calendar

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar