c# - How to add Dispatcher in Background Scheduled Tasks in windows phone application -


whenever create dispatcher background scheduled task says error(an object reference required non-static field, method, or property 'system.windows.threading.dispatcher.begininvoke(system.action)), how can use object of dispatcher here....... created object of system.windows.threading can't possible namespace...

error image: http://3.bp.blogspot.com/-ffhwrh8vyko/uyyxikagrui/aaaaaaaaan4/ptdqek5jopw/s1600/navjot.png"

in background agents use deployment.current.dispatcher.begininvoke(()=> ...) instead run code on dispatcher thread.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -