Take a window screenshot with borders

I need to send to print the image of the current window. I tried
PrintDialog pd = new PrintDialog();
if (pd.ShowDialog().GetValueOrDefault() == true){
pd.PrintVisual(Win, Win.Title);}
But it won't print the borders.

I then tried the ugly PrintWindow command but it won't print the content, just the borders with a black part where the content should be.
Now I can merge both using SystemParameters for border size but it's the ugliest system I ever coded.
I want to know how to, in wpf, get a screen shot of a window and it's borders.

[567 byte] By [Simon] at [2007-12-24]

Visual Studio Orcas

Site Classified