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

1

6

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?

Bradski answered 20/6, 2011 at 20:38 Comment(0)
M
9

IsHitTestVisible= "false" on the TextBlock.

Monika answered 20/6, 2011 at 20:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.