WynApse Home Page
Home    Blog    Contact       
Latest Article:
Read my CoDe Magazine Article
My Tags:
Hosted by:


3 Months FREE!

Ask me how to get 6 months free.

Running on ASP.Net 2.0

Lifetime Member:
Join Community Credit - I did!


web tracker

Over 1338892 Pages Served


Minor Errors in Silverlight QuickStart


While working on the last part of the WPF/E QuickStart, I was doing my thing which is normally thinking of other stuff to try to do with the sample code. The slider looked like fun, and I thought if I started it in the center instead of on the left that would be interesting. The outer Canvas in the xaml already had a Loaded= line in it, so I simply used it to try to set the center.

'Loaded' was pointed at "javascript::slider_loaded. That in turn called slider_SetValue. So I changed this call to pass 100 instead of 0.

And it didn't work. Hmmm

A couple of alerts pointed out more than one problem with the original code:

  • The Loaded= line in the xaml calls out "slider_loaded", but the actual javascript is named "slider_Loaded", so no matter what the value was set to, it wasn't being called.
  • Once I had that repaired, it still wasn't working because the call from slider_Loaded to slider_SetValue was passing 'slider' instead of 'sender'. There is no variable named 'slider'.

These are both reasonably minor, but if someone is trying to use the QuickStart code as a springboard to other things, it will slow them down.

I downloaded the latest WPF/E QuickStart and documentation from late December, and the problems are still there.

RSS:  rss URL



Member of WPF and Silverlight Insiders
Creative Commons License

Alltop, confirmation that I kick ass
Check out our book:
Our Book
Copyright © 2006-2008, WynApse