0

Context menu

Anonymous 10 years ago 0
This discussion was imported from CodePlex

ddklo wrote at 2012-03-03 00:06:

Hi.

I was wondering if there were a recommended way of showing a context menu when the user rights clicks in the HelixViewport3D? Currently we are subscribing to the mouse down event, but there are some problems relating to the mouse being capture and not released (maybe because the right mouse button is also used to move). Is there a way to add a ShowContextMenu Command/Gesture?

Regards Dagfinn


objo wrote at 2012-03-10 16:14:

I have used a standard wpf context menu on a HelixViewport3D in an application that shows a list of selectable items on left mouse clicks, but I have not tried it on the right mouse button. Should add an example that opens a context menu on both left and right clicks. For the left click context menu I had to open the context menu manually by setting IsOpen=true. 


davidop wrote at 2013-05-28 14:53:

Could you give some examples? I have a HelixViewport3D with multiples ModelVisual3D and I would like that when you click with the right mouse button a contextual menu appear.