DispatcherTimer is a .Net class that provides timers that are integrated into the Dispatcher queue which is processed at a specified interval of time and at a specified priority.
Questions tagged [dispatchertimer]
216 questions
0
votes
1 answer
Dispatcher Timer - Windows Phone
I'm building a small app on my windows phone, and I'm having trouble with the dispatcher timer.
Everytime the page is loaded, the dispatcher is being ran over another time.
Basically I got a countdown, when ever the user returns to the mainpage…

Jazerix
- 4,729
- 10
- 39
- 71
0
votes
1 answer
Timer in Global.asax
I would like to start a timer when the application is started in IIS.
Do you think that the best place is in Application_Start in Global.asax?
Thank you very much.

fiso
- 1,375
- 1
- 14
- 20
0
votes
0 answers
Decreasing timer interval in WP7 Silverlight
I'm using DispatcherTimer in WP7 Silverlight to apply a simple translation animation on the menu.
Now, if I decrease the step length, the translation looks smooth, but slow. If I increase the step length, the translation looks fast, but not…

Hamzeh Soboh
- 7,572
- 5
- 43
- 54
0
votes
1 answer
Can't Stop The DispacherTimer
I am writting some code in a wpf and I have a mouse that performs a click if the cursor stands still for a few seconds..I want to stop clicking if I open a new wpf window that i created...But it seems that dispachers doesn't stop, even if I tried…

Jack
- 115
- 1
- 15
-1
votes
2 answers
WPF Dispatchertimer tick increments,
I am making a countdown clock using dispatchertimer and timespan in WPF.
I have a button to start the countdown and a button to stop the countdown. When I hit the start button again it has doubled the interval from one second to two seconds. I…

Jens Barfred
- 1
- 2
-1
votes
1 answer
Naming a DispatcherTimer based on a string from another method?
I'm attempting to generate 16 unique DispatcherTimers, without having to recreate the code for each. However, I cannot figure out how to dynamically name them based on the content converted to string of the button pressed.
Originally, I was setting…

Schreiberito
- 29
- 7
-1
votes
1 answer
One dispatcher timer, move multiple elements C# wpf
I am trying to use DispatcherTimer for multiple elements (visual, moving stackpanel)
It is possible to call the same DispatcherTimer_Tick for multiple elements? and all of them to move at the same time, but using a loop? And also how should I delay…

user9368565
- 7
- 1
-1
votes
1 answer
Call event in dispatchtimer after every one minute interval
I created a dispatcher timer with one minute interval,
DispatcherTimer dispatcherTimer = new DispatcherTimer();//creation of dispatchtimer
private void btnstart_Click(object sender, RoutedEventArgs e)
{
dispatcherTimer.Tick += new…

user688
- 361
- 3
- 22
-1
votes
1 answer
wpf Multiple dispatch timer for timer application : Run multiple timer simulteniously
Read multiple stackoverflow, codeproject solution, could not integrate to my problem.
Have a datagrid in a usercontrol which is loaded in a window. Each DataRow in the DataGrid represents a timer setting.
Like:
timer name : Test 1 , Timer : 1h…

Abdur Rahim
- 3,975
- 14
- 44
- 83
-1
votes
1 answer
How to call a method if event got not fired again
I wanna call a method in a TextChanged event only if the event got not fired again within one second.
How can this be done in WPF (maybe using a DispatcherTimer)?
I currently use this code but it does not call MyAction() within Method:
bool…

Moagggi Stoane
- 39
- 7
-1
votes
1 answer
c# how to run multiple timer in loop. one timer after another
I want to run timer countdown (DispatchTimer) multiple times in a loop, one after another. I want to wait until one timer stops and then run another one.
I'm gonna try something like this:
public TimeSpan CurrentTimeSpan;
private void…

arrchi
- 3
- 3
-1
votes
1 answer
Flickering buttons with different timespans
Is it possible to use the dispatchertimer class, to create two timers(or more) for two different button, so they will flicker at different timesettings. I have tried to do this in the code I ahve attaced, however, if the two timespans are not the…

Aslak Aøgaard
- 89
- 7
-1
votes
1 answer
DispatcherTimer not working inside task any reason?
Ok this this works as below
public MainWindow()
{
CheckCrawlURLs.func_StartCrawlingWaitingUrls();
}
However this doesn't work below
public MainWindow()
{
Task.Factory.StartNew(() =>
{
…

Furkan Gözükara
- 22,964
- 77
- 205
- 342
-1
votes
1 answer
Why DispacherTimer.Tick event occurs two times?
I use DispacherTimer to auto-save a file. The code is like the following:
void beginAutoSave()
{
_autoSaveDispacherTimer = new DispatcherTimer();
_autoSaveDispacherTimer.Interval = TimeSpan.FromMinutes(1);
_autoSaveDispacherTimer.Tick +=…

user3083911
- 1
- 1
-1
votes
1 answer
How to make a thread wait until another thread is finished to start
I am using a DispatcherTimer which calls a method to execute in a different thread. I am running a simple program that does not need to really worry about inefficiencies. How do I get the UI thread to wait for the DispatcherTimer to finish while…

meisenman
- 1,818
- 1
- 15
- 25