Answered by:
Timer Contorl

Question
-
Answers
-
Agreed, we need code before we can even start to begin to guess what went wrong.
Also, please specify wich of the 3+ Timer Classes you used:
http://msdn.microsoft.com/en-us/magazine/cc164015.aspx
Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2
- Proposed as answer by Jason Dot Wang Wednesday, May 15, 2013 4:37 AM
- Marked as answer by Jason Dot Wang Thursday, May 16, 2013 9:12 AM
All replies
-
Draw when the tick occurs. Invalidation is not enough. Particularly if you want it to occur when you are dragging the window.
You should share more details if you want more help. Like show the code that you used to "display time". And show the setup and handler for your timer.
And also describe the "hang". I don't believe it's possible to hang the application due to a timer, but you might inadvertently suspend drawing or handling of the tick events depending on what code you wrote.
-
Agreed, we need code before we can even start to begin to guess what went wrong.
Also, please specify wich of the 3+ Timer Classes you used:
http://msdn.microsoft.com/en-us/magazine/cc164015.aspx
Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2
- Proposed as answer by Jason Dot Wang Wednesday, May 15, 2013 4:37 AM
- Marked as answer by Jason Dot Wang Thursday, May 16, 2013 9:12 AM