I would like to be able to basically have a button which allows me to save a picture of the current state of a WPF window.
Ideall, I would like to be able to send this picture to the clipboard.
At the moment, the user uses the “Print Screen” keyboard touch, but he then has to go through pain to select only the window in question.
Is there a programmatic way to get all the content of a WPF window in the clipboard or as an image?
You can create a
VisualBrushand bind it to your root element.Here is a link that does exactly what you want.