Open atiyka opened 3 years ago
Hello atiyka, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback š
This issue has been marked as "needs attention š" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention š" due to no activity for 15 days. Please triage the issue so the fix can be established.
FYI @marb2000
Describe the bug
In a
WPF
application (targeting .NET core 3.1) I'm using XamlHosts to display windows 10 design UI elements. I'd like to print from my app - display the Win10 print preview.I checked the printing in UWP Samples, I could start and it's working. But as I moved the code to my custom UWP component (which is displayed in the WPF application), the print preview doesn't display. As I call the
await PrintManager.ShowPrintUIAsync();
, it throws the following exception:None of the following callbacks are fired:
Paginate
,GetPreviewPage
,AddPages
,PrintTaskRequested
. So, the error happens before any of these are called.I checked every setting and configuration in the sample app (where it's working) and everything is the same as in my app. So, I'm wondering if the problem is with the XamlIslands?
Steps to Reproduce
I created a sample project, where it reproduces the issue. You can find it here. The exception raises in PrintHelper.cs:116.
Expected behavior
It would be great if I could show to the user the win10 designed print preview UI.
Environment