Hidden blog

Nella sapienza non c'è fine

 

posts - 20, comments - 11, trackbacks - 0

Wpf – Screenshot di un elemento

 

Per ottenere lo screenshot di un elemento contenuto all’interno di una window di Wpf o Silverlight ecco il codice

 
Dim element As UIElement = grid1
Dim transform As Transform = grid1.RenderTransform
Dim wbmp As New WriteableBitmap(element, transform)
Image1.Source = wbmp

 

Francesco Valentino

Print | posted on martedì 14 settembre 2010 9.12 |

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 6 and 8 and type the answer here:

Powered by: