NicolTIP#027: How to update the UI from a worker thread on Windows Phone 7?
Use “Deployment.Current.Dispatcher.BeginInvoke”.
sample:
Deployment.Current.Dispatcher.BeginInvoke(delegate()
{
LoadingBar = Visibility.Collapsed;
});
เบราว์เซอร์นี้ไม่ได้รับการสนับสนุนอีกต่อไป
อัปเกรดเป็น Microsoft Edge เพื่อใช้ประโยชน์จากคุณลักษณะล่าสุด เช่น การอัปเดตความปลอดภัยและการสนับสนุนด้านเทคนิค
Use “Deployment.Current.Dispatcher.BeginInvoke”.
sample:
Deployment.Current.Dispatcher.BeginInvoke(delegate()
{
LoadingBar = Visibility.Collapsed;
});