P
P
Pitonist2242020-05-13 04:11:43
WPF
Pitonist224, 2020-05-13 04:11:43

How to separate window flow from element?

There is a window that has its own flow, there is a graph in the window. I'm animating a chart, and to animate it, I often have to call the chart update method in the interface. And each such call blocks the entire ui thread for milliseconds, but there are just a bunch of such calls.
The question is, is it possible to somehow make the graphics as an interface element a separate thread from the window, so that the window can be moved during the animation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2020-05-13
@HemulGM

Do all the processing of the chart inside a separate thread. Call the rendering methods by setting them to the queue of the main thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question