Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Click through a transparent image in WPF or Silverlight

I need to develop a program that consist of an image (png) with an hole in the center. Under this image there will be a frame and I want that clicking on the transparent hole of the image I can click a button inside the frame. I don't know if there is a method to propagate the click through the image or something else. Thanks for your help

like image 926
Simone Avatar asked Dec 24 '22 23:12

Simone


1 Answers

You mut set IsHitTestVisible to false on the image, then clicks go through.

like image 139
Peter Ožbot Avatar answered Dec 27 '22 21:12

Peter Ožbot