2

I want to fade a WPF window in, but I can't do that unless the window is set to transparent and window style is set to none, and I don't want that. Instead I want to create the illusion that the window is fading in by putting on top of it whatever is under it and then gradually reduce the opacity so it is brought into view.

I know that in order to to this another window with transparency and no borders must be used as the object that holds the captured image and performs the fade.

So in theory I know what I want, but I have no idea of how to capture as an image whatever is under a WPF window. Of course, the interface that I want to reveal will be hidden until the capture is performed, so the window on top doesn't capture the actual interface, and I will show the GUI only after the image has been captured, so it can be revealed after the image starts losing opacity.

That was just an explanation for what I need this. The basic question is: how do I capture to an image whatever is under a window (even if it requires the window to be transparent)?

IneedHelp
  • 1,630
  • 1
  • 27
  • 58
  • Why do you not want to change the Opacity? – H H Sep 19 '12 at 10:03
  • I'm thinking that if I capture the background image and have it over the gui which I want to reveal, I have to reduce the opacity of the overlaying window. – IneedHelp Sep 19 '12 at 10:18

1 Answers1

-1

Found an article here describing a couple of ways to do what I need: http://www.codeproject.com/Articles/91487/Screen-Capture-in-WPF-WinForms-Application

IneedHelp
  • 1,630
  • 1
  • 27
  • 58