c# - Hit-testing on entire area of custom FrameworkElement that contains transparent elements -


i've got custom control inherits frameworkelement. contains visual contains transparent areas. i'm trying make entire control area respond hit tests, @ moment, when click on part of control displays transparent area of visual, click passes through underlying layer.

is there way of making entire control hit-testable without using hack?

i'd stay away techniques painting background of visual white, or adding border around custom control has same event handler set.

thanks in advance!

simply use transparent brush , respond hit testing.

for example, if have null background brush, hit testing pass right through.

if use brushes.transparent background or fill area, work hit testing.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -