UWP - How Can Dispatcher DispatchedHandler Run On Worker Thread?
问题 Im trying to update some UWP UI from a background thread via the Dispatcher. However, the handler passwed to the RunAsync method is still getting executed on a backlground thread. I have no idea how to fix this - have I missed something? --EDIT-- I only have one window, which is Window.Current I have tried the Community Toolkit DispatcherHelper class, but I'm still getting the exact same exception private static async void OnSelectedItemChanged(DependencyObject d,