c# - How to make my wpf app wait for 3 minutes before re-loading data? -
i using vs2010 - wpf - c#
in application fetch data web server , view on interface problem want keep fetching data , keep refreshing interface every 3 minutes don't know how that...
i tried (thread.sleep(18000)) , didn't work because interface wouldn't show @ all
i don't know how use timer such reason , couldn't find i'm looking elsewhere
please can me ?
best regards
what programming model? stock or more sane mvvm approach?
anyhow, use timer request callback after 3 minutes. in callback invoke dispatcher thread of window once got results of web service call. finished.
Comments
Post a Comment