rover2341
Is riding a roller coaster...Wee!
- Reaction score
- 113
C# Dispatch Timer. (WP7).
http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer.aspx
It claims I can change the .IsEnabled get and set. BUT I CANT. in WP7 its only read only.
My Requirement: Pause, Resume. How to get it to work....
Looking for suggestions or insight on how to deal with this.
Creating the ability to do pause and resume manually is not perferd.
- I know its possible to set up 2 functions I make up.....startTimer, StopTimer. That will find the amount of time the timer has been going, and how much is left. then stop the timer, and set the timer to total time to whats left, so when it starts again it will finsh on time.
But there are 2 issues with this.
1. I have to create 2 functions and some varbiles for each timer I have to pause (I have 4 of them).
2. Having hard time getting this to work correctly, but should.
Other Timer Types
//thearding.timer
//stopwatch
But they dont seem to solve the problem. I read online, that this timer should be able to pause and resume just fine but I cant figure out how.
http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer.aspx
It claims I can change the .IsEnabled get and set. BUT I CANT. in WP7 its only read only.
My Requirement: Pause, Resume. How to get it to work....
Looking for suggestions or insight on how to deal with this.
Creating the ability to do pause and resume manually is not perferd.
- I know its possible to set up 2 functions I make up.....startTimer, StopTimer. That will find the amount of time the timer has been going, and how much is left. then stop the timer, and set the timer to total time to whats left, so when it starts again it will finsh on time.
But there are 2 issues with this.
1. I have to create 2 functions and some varbiles for each timer I have to pause (I have 4 of them).
2. Having hard time getting this to work correctly, but should.
Other Timer Types
//thearding.timer
//stopwatch
But they dont seem to solve the problem. I read online, that this timer should be able to pause and resume just fine but I cant figure out how.