Online Advertising, Web Development & General Rantings

SilverLight Timers, what to use?

August 11, 2007 · 1 Comment

subheading 2

1. HtmlTimer is deprecated and not very reliable (incase you want to use it here is the basic code to get it working

Silverlight Timer - using the HtmlTimer 
2. System.Threading.Timer. Not really an option because there’s no way to marshal it’s callbacks back onto the UI thread

3. Storyboard in XAML and wired a handler to its Completed events. I used the inline event on the xAML instead of wiring up the event in code because it wasn’t behaving properly.

SilverLight Timer using a storyboard

Categories: silverlight code tips