Previously I had
Dispatcher.Invoke(new Action(() => colorManager.Update()));
to update display to WPF from another thread. Due to design
If you call Invoke
with an Action
delegate, you need to pass the two Action parameters to the Invoke call:
ColorStreamManager colorManager = ...
ColorImageFrame frame = ...
Dispatcher.Invoke(
new Action((p,v) => p.Update(v)),
colorManager,
frame);
The Invoke overload you're using here is Dispatcher.Invoke(Delegate, Object[]).