For a very specific reason I want to select ListViewItems on mouse button up, not actually on mouse button down. I want this behaviour to be embedded in the control. Is it possible to achieve this? can anyone give hint?
For a very specific reason I want to select ListViewItem s on mouse button
Share
Aviad P.’s answer is a good one and a clever use of attached properties, but I tend to use a different technique most of the time:
This seems easier to me than subscribing to ItemContainer events and adding handlers dynamically.
This is what it looks like:
I like this technique because there is less code involved.