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(); }); }