日期:2014-05-18  浏览次数:21162 次

WPF中ProcessBar问题
在WPF窗体中,我想为一个WebBrowser添加一个进度条,使进度条显示webbrowser加载的进度,请各位帮帮忙,谢谢

------解决方案--------------------
不是有progresschanged事件吗
------解决方案--------------------
wPFProcessBar1.Dispatcher.Invoke()方法


double value = 0;
wPFProcessBar1.Dispatcher.Invoke(new Action<System.Windows.DependencyProperty, object>(wPFProcessBar1.SetValue), System.Windows.Threading.DispatcherPriority.Background, ProgressBar.ValueProperty, value);