Freezing UI

Oct 24, 2013 at 9:17 AM
What are the causes for an update to an oxyplot freezing the UI?
Oct 24, 2013 at 12:20 PM
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
InvalidatePlot(true);
instead of
RefreshPlot(true);
You may like to take a look at Threads and BackgroundWorker.
Oct 24, 2013 at 1:43 PM
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! :(
Oct 25, 2013 at 11:05 AM
Its

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?