WPF中ProcessBar问题

colaHK 2012-03-05 11:30:24
在WPF窗体中,我想为一个WebBrowser添加一个进度条,使进度条显示webbrowser加载的进度,请各位帮帮忙,谢谢
...全文
151 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
只是空想家 2012-10-29
  • 打赏
  • 举报
回复
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);


对我有用[0]丢个板砖[0]引用举报管理TOP精华推荐:请大家说说Linq的缺点
还用加_DispatchTimer时间间隔吗?
q107770540 2012-03-05
  • 打赏
  • 举报
回复
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);
colaHK 2012-03-05
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 bdmh 的回复:]
不是有progresschanged事件吗
[/Quote]
在WPF中貌似没有呃,我找不到就来论坛问问了
bdmh 2012-03-05
  • 打赏
  • 举报
回复
不是有progresschanged事件吗

110,537

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧