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