How to print contents of StackPanel

JeffinAtl 161 Reputation points
2021-08-20T18:45:42.35+00:00

I have a StackPanel(P) which have child content, StackPanel(C) of which contents are three QR code images.
If click print button, the contents of P should be passed to the print dialog and shown in the preview.
How to do this?

Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,686 Reputation points
    2021-08-20T20:20:34.567+00:00

    StackPanel is WPF...
    The method from this video works fine for me : WPF Print with Preview a Window or Control
    (link to the code below the video...)

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.