Esempio n. 1
0
File: Print3D.cs Progetto: ice0/test
 private static async void UIThread()
 {
     // convert to UI thread and then launch the printing dialog
     // print dialog only works in UI thread
     await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => {
         var print = new Print3D();
         print.LaunchPrintDialog();
     });
 }
 private static async void UIThread()
 {
     // convert to UI thread and then launch the printing dialog
     // print dialog only works in UI thread
     await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => {
         var print = new Print3D();
         print.LaunchPrintDialog();
     });
 }