2011-02-07 14 views

Respuesta

17

Está buscando el DispatcherTimer class.

DispatcherTimer dt = new DispatcherTimer(); 
dt.Interval = TimeSpan.FromSeconds(10); 
dt.Tick += delegate { ... }; 
dt.Start(); 
+0

dime más, por favor. ¿Cómo funciona el temporizador? ¿Intervalo? – Shisoft

+0

http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer.interval%28v=vs.95%29.aspx Puede crear un 'TimeSpan' utilizando su constructor o escribiendo' TimeSpan.FromSeconds (5) '. – SLaks

+0

Gracias. No he visto el hipervínculo en su respuesta. – Shisoft

Cuestiones relacionadas