SilverLight Timers, what to use?

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

7 responses to “SilverLight Timers, what to use?

  1. Hi,
    Yor forgot about “DispatcherTimer ” which I think is much better to count time. 🙂



  2. System.Threading.Timer may be used you merely have to make a cross thread call to access the UI thread. To do this do the following:

    this.Dispatcher.BeginInvoke(new Action(new Action(TheSubtaskToCall)));

  3. Stop dreaming and start doing A strong hope can make your dreams come true

  4. Senyum adalah cara sederhana dalam menikmati hidup

  5. Tidak sedikit dari kaum wanita yang mengalami kesulitan dalam hal menjaga kesehatan ‘Miss V’ (baca: vagina). Berbagai masalah menuai menjadi kepanikan ketika Miss V ‘berulah’. Sebut saja seperti keputihan gatalgatal aroma tidak sedap dan lain sebagainya.

  6. A young person who will be successful is never give up before get the success on his hand

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s