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