Do the xaml animations block the main thread? I’m showing a big grid with lots of data and several animations and even with everything (but the property changes) on background threads the UI is far from being smooth.
As I have several Dispatcher.BeginInvoke (and some Invoke when needed) I was thinking that maybe the animations make the invokes to go slower. Am I right?
Thanks in advance.
I’d recommend investing in a profiler. Certainly, animations run on the UI thread and heavy use of animations might be the cause of the choppiness, but there is no way for us to know for sure.
My preference for profiling C# is dotTrace, but there are tons of others out there. There are even WPF-specific diagnostic tools from Microsoft in the WPF Performance Suite, but I haven’t tried them.