Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextBlock over a listview: how to ignore clicks in the TextBlock and let the listview handle them

I have a listview which displays a lot of info, but when it's empty I want to overlay a textblock over it which says "No Info to Display" or "Do bla-bla-bla to add info".

The listview is set up to respond to mouse clicks, but now if I click on the textblock, those events are routed to the textblock. How can I make these events go to the listview instead?

like image 331
Warpin Avatar asked Jun 20 '11 20:06

Warpin


1 Answers

IsHitTestVisible= "false" on the TextBlock.

like image 158
H.B. Avatar answered Oct 03 '22 23:10

H.B.