UWP update UI from Task

  1. You can use as many tasks as you want, the system will automatically perform queuing and execution for you. That’s one of the advantages of using the built in mechanisms

  2. To execute code on the UI thread you can use the dispatcher like this:

    await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => {
                //UI code here
    });
    

Leave a Comment