Silverlight and M-V-VM - Where should a timer live?

Posted by Bill Jeeves on Stack Overflow See other posts from Stack Overflow or by Bill Jeeves
Published on 2010-06-16T14:38:43Z Indexed on 2010/06/16 14:42 UTC
Read the original article Hit count: 173

Filed under:
|

I'm creating a simple monitoring tool in Silverlight. It talks to a web service to retrieve the status information and store it in the ViewModel. This needs to happen once per minute so I'm going to add a timer for this purpose (probably a DispatcherTimer).

My question is, where should the timer go in an M-V-VM architecture? In the ViewModel or the View?

© Stack Overflow or respective owner

Related posts about mvvm

Related posts about silverlight-4.0