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

Handling PreviewMouseRightButtonUp event on parent and child element separately

$
0
0

Hello All,

I have readonly texbox inside ListViewItem's data template. I have handled PreviewMouseRightButtonUp  event on ListViewItem to show some context menu.

As textbox by default have context menu on right mouse button click for copy paste menu. but I have handled PreviewMouseRightButtonUp  event at ListViewItem level . My textbox's default menu is not popping up.

I want to  Pop up default context menu if user right clicks in text box and my custom context menu otherwise.

How to handle this. Please provide solution.

Thanks in advance.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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