寻找指南如何使用WPF和C#刷新UI处理大量交易数据? 请提一下与Microsoft技术堆栈相差不远的各种工具和方法? 有人可以分享代码吗?
Looking for guidelines How to refresh UI handling high volume trade data using WPF and C# ? Please mention various tools and approach not going far way from Microsoft technology stack ? Can somebody share code ?
最满意答案
我建议你看一下Reactive Extensions :
Reactive Extensions(Rx)是一个库,用于使用可观察序列和LINQ样式查询运算符组合异步和基于事件的程序。
您可以使用它以受控方式将您的交易数据推送到您的UI,以便在给定的时间间隔或每当收到一定数量的更新(即批处理)时执行更新。
Rx简介是一本关于这一主题的优秀而简短的免费书籍。 您可以在此SO问题中找到其他有用的链接。
I'd suggest you take a look at Reactive Extensions:
The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.
You can use it to push your trade data in a controlled fashion to your UI, so that updates are performed at a given time interval or whenever a certain number of updates have been received (i.e. batching), for instance.
Introduction to Rx is a great and brief free book on the subject. You may find other useful links in this SO question.
更多推荐
发布评论