TaskScheduler uiContext = TaskScheduler.FromCurrentSynchronizationContext(); Task t = Task.Factory.StartNew(() => { }).ContinueWith(m => { }, uiContext);