Freezing UI

Oystein Bjorke il y a 5 ans 0
This discussion was imported from CodePlex

willmoore88 wrote at 2013-10-24 11:17:

What are the causes for an update to an oxyplot freezing the UI?

everytimer wrote at 2013-10-24 14:20:

Not only OxyPlot, but everything will freeze your UI if you do not use a separate Thread for performing that operation. I think this can be done in OxyPlot using
instead of
You may like to take a look at Threads and BackgroundWorker.

willmoore88 wrote at 2013-10-24 15:43:

It is exactly this call that is temporarily freezing the UI. The function which updates my plots ItemsSource and calls InvalidatePlot(true) is already running on a separate thread. I have no idea what i'm doing wrong! :(

willmoore88 wrote at 2013-10-25 13:05:


public void Update(bool updateData = true)

in PlotModel.cs. This is running on the main thread - updating thousands of points. How can I make this update run on a separate thread?