c# - 有没有办法等到 oxyplot 中的情节完全刷新?
问题描述
oxyplot 中的图是使用该PlotModel.InvalidatePlot(bool UpdateData)
方法更新的,但是有没有办法在代码中执行其他任何操作之前等待刷新过程完成?
解决方案
我认为这可能会解决您的问题。
lock (MyModel.SyncRoot){
//Code in here will only run after model is refreshing process is complete
}
推荐阅读
- swift - How do I bypass the welcome screen UI and present only the phone auth UI screen in Firebase Auth?
- go - idiomatic error and value order using Multiple Return Values in go
- css - FontAwesome 图标 (::before) 太大了 0.5px
- android - 如何在 RecyclerViewAdapter 中使用 TextWatcher
- sorting - How to order products by custom taxonomies in Woocommerce?
- spring-boot - 如何处理 webclient 抛出的异常?
- c - 为什么我的 while 循环有这样的限制会导致分段错误?
- testing - Azure DevOps | 将测试用例链接到用户故事的测试套件查询
- unity3d - 如何让游戏对象符合其他游戏对象形状
- mysql - SUM() 计算行两次并显示双倍结果