public static CoreDispatcher GrabUIDispatcher() { var helper = new GetUIThread(); Task<CoreDispatcher> t = helper.GrabUIDispatcherAsync(); t.Wait(); return t.Result; }
public static SynchronizationContext GrabUISynchronizationContext() { var helper = new GetUIThread(); Task<SynchronizationContext> t = helper.GrabUISynchronizationContextAsync(); t.Wait(); return t.Result; }