I have many different windows and they all have a different design. The different windows are selected in a menu. The menu has screenshots of the windows in every row. I would like to find a way and automatize the following steps:
- make a screenshot of the window
- insert the picture in the new window
- link the click handler
So, actually my question is, whether it is possible to get the image of the yet hidden window during runtime
This should give the idea. I have a control template for my windows. This template has a VisualTarget element that wraps all the other controls in each instance. So the code below works for me.
Edit: Here is something more general
Edit: Examples above are using live visual brushes which could lead to a performance breakdown. So following is the answer for frozen window thumbnails.