Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Treeview : Get a notification everytime a Treeviewitem is clicked.

$
0
0

In a TreeView , the SelectionChangedEvent fires only when the selected item in the Treeview changes. I have a requirement that even if the user clicks on the same TreeViewItem multiple times , an event needs to be raised every time so that I can perform some action every time. Is there any way to achieve this ? I would prefer not to use the MouseLeftButtonUp event (unless there is no other go ).

I tried having a button (template as a Label) for each TreeViewItem but ran into Highlight issues.

Any other ideas on this ?

Thanks for any help.



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>