, :
TaskScheduler uiScheduler = TaskScheduler.FromCurrentSynchronizationContext();
, .
a Task : private void changeElements() { ( (() = > { // ui .})) Start (uiScheduler); }
, , BeginInvoke, .
But, as mentioned, you do not need to call several calls BeginInvoketo update user interfaces, since after the first you are already in the main thread.
source
share