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