TextBlock above list: how to ignore clicks in TextBlock and allow them to be viewed in listview

I have a list that displays a lot of information, but when it is empty, I want to put a text block over it that says "There is no information to display" or "Do bla-bla-bla to add information."

Listview is configured to respond to mouse clicks, but now, if I click on a text block, these events are sent to the text block. How can I do these events in a list instead?

+4
source share
1 answer

IsHitTestVisible = "false" in a TextBlock.

+5
source

All Articles