« WPF/E Mouse Track | Main | Multiple Storyboard Animations in WPF/E »

Silverlight Egg Timer

NOTE: The link is now updated from a WPF/E example to a 1.0 Silverlight example - Simon.

Well, after a while you get sick of "Hello World" for your first applications.

I thought I'd make my Silverlight learning experience public, so if you have Silverlight installed, take a look. I wanted a two-minute timer for all my GTD "less than two minute" tasks, so I wrote one.

Silverlight Egg Timer

More examples coming soon.

Posted on Monday, December 11, 2006 at 02:48PM by Registered CommenterSimon Allardice | Comments7 Comments | References2 References

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (2)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Response: WPF/E Egg Timer
    Simon Allerdice has written a WPF/E egg timer app as a first sample. Check it out .
  • Response
    Shawn Wildermuth, who wrote the excellent book Pragmatic ADO.NET (Addison-Wesley, 2003, 357 pp, $44.99, ISBN 0-201-74568-2), has been working closely with the Silverlight team at Microsoft. Just in time for the release of Silverlight at MIX07, O'Reilly has released Shawn's...

Reader Comments (7)

Nice example! I was staring at my screen waiting for animated sand to build up atthe bottom of the timer :)

I guess that'll have to wait for version 2!! ;)
December 12, 2006 | Unregistered CommenterLaurence Moroney
Wow, nice-looking sample! I like the aesthetic.

I noticed that you have a script error, which is handled in IE (7) but thrown in FF (1.5.0.8):

Error: Error calling method on NPObject!
Source File: http://www.interfacett.com/wpfe/eggtimer/js/eventhandlers.js
Line: 30 (and 180)

The syntax of the call should be
[TextBlock].setvalue("text", "asdf");
rather than
[TextBlock].setvalue("text") = "asdf";
Alternatively, you can access the property "directly" by using:
[TextBlock].text = "asdf";
December 12, 2006 | Unregistered CommenterCaleb Bell
Thanks! Version two coming soon. And thanks, Caleb, for catching that one - now fixed.
December 12, 2006 | Registered CommenterSimon Allardice
How did you make the design and the storyboards ?

using Expression Blend or by code?

i need to know if its possible to do wpf/e using Blend ...

thnx ..
December 13, 2006 | Unregistered CommenterMoran
Moran - I did it all by hand. My personal take is that it's still a little early to use Blend for WPF/E, unless you just use simple primitive shapes, like Rectangles and Ellipses, as it'll export way too many WPF-only properties and objects. I'm presuming that WPF/E export is on the way.

Now, I'm really looking forward to having a nice designer to work with, but I must admit I really did learn a lot by working with the raw XAML.
December 13, 2006 | Registered CommenterSimon Allardice
ok thnx , i really hope that blend will have a wpfe project , its hard to design interfaces with a code , specially a big animations.

December 13, 2006 | Unregistered CommenterMoran
Simon, you are my hero! Very cool.
December 13, 2006 | Unregistered CommenterJen
Editor Permission Required
You must have editing permission for this entry in order to post comments.