Open timonkrebs opened 11 months ago
In WPF only the state relevant for the ui should be handeled on the UI thread. Every thing else should be done on workers.
Application.Current.Dispatcher.Invoke(new Action(() => { /* Your code here */ }));
provide dependencies as seperate params so that they can be evaluated independently. Most important for the effect.
In WPF only the state relevant for the ui should be handeled on the UI thread. Every thing else should be done on workers.
Application.Current.Dispatcher.Invoke(new Action(() => { /* Your code here */ }));