I've found 3 different ways of using the dispatcher
await Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
// ...
});
await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
// ...
});
await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
// ...
});
I don't understand the difference between them and when to use which one. My project only has one "page". Which one is the "best" way to go?
Edit// Sorry for this question, currently i'm still learning but didn't found any explanation to this topic.