Skip to content

set PrintQueue.CreateXpsDocumentWriter owner #6768

@ryanryanorient

Description

@ryanryanorient
  • .NET Core Version:5.0
  • Windows version: windows 10
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: No

Problem description:
I showDialog in window 1 another window 2,
Call PrintQueue.CreateXpsDocumentWriter in new window 2
The printer selection dialog 3 popped up,
but it can not set the Owner option,
which caused me to accidentally click on the new window 2,
and the printer selection dialog 3 was hidden to the new window 2.
After that,
it is expected that the new window 2 cannot be clicked.
XPSDocumentViewer has the same problem,
When the print button is clicked, the dialog box may be set to the back
Actual behavior:

Expected behavior:

Minimal repro:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions