WPF: Real time timeline control needed
I need to reflect progress of execution of numerous tasks in real time.
I wondering is it any WPF\Silverlight control which do this.
Here what I found, but this controls don't meet my needs:
- http://blogs.msdn.com/llobo/archive/2010/04/30/sl-timeline-control-for-sharepoint.aspx
- http://timeline.codeplex.com/
- http://timelinecontrol.codeplex.com/wikipage?title=Screen%20Shots&ref开发者_StackOverflow中文版erringTitle=Home
If you are looking for a progress bar that updates in real time, I don't know of any 3rd party controls, but you can update a standard ProgressBar control based on work being done on a background thread using the WPF Dispatcher. I have implemented this pattern with multiple threads reporting back to multiple progress bars in a tree view simultaneously with no problems.
Here are a few articles I found that walk through this approach:
- "WPF Multithreading Using the Background Worker and Reporting the Progress to the UI" (ElegantCode.com)
- "Simple WPF Progress Window with Cancellation" (blog.quantumbitdesigns.com)
精彩评论