首页 > 解决方案 > 有没有办法等到 oxyplot 中的情节完全刷新?

问题描述

oxyplot 中的图是使用该PlotModel.InvalidatePlot(bool UpdateData)方法更新的,但是有没有办法在代码中执行其他任何操作之前等待刷新过程完成?

标签: c#plotgraphicsoxyplot

解决方案


我认为这可能会解决您的问题。

lock (MyModel.SyncRoot){
//Code in here will only run after model is refreshing process is complete
}

推荐阅读