Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I override the context menu in Silverlight for all browsers that support Silverlight 2.0?

It seems like a common question on Google, but I couldn't find a satisfactory answer (unless the answer is 'no')

I would like to add menu items or show a custom menu when a user right-clicks on my Silverlight app.

The closest thing that I found catches the context menu in IE, but not in Firefox, and Chrome shows the context menu and then shows the custom event.

(The tutorial I mentioned was here http://silverlight.net/blogs/msnow/archive/2008/07/01/tip-of-the-day-14-how-to-right-click-on-a-silverlight-application.aspx)

like image 244
NetHawk Avatar asked Oct 14 '22 15:10

NetHawk


1 Answers

Here you have an implementation but it's CTRL+Left click, then you get a context menu (about the text, sorry it's in spanish):

http://www.albloguera.es/?p=29

Another option, is the one pointed out do it via javascript, quite chunky solution, and not sure if now it's working in the current 2.0 version :-(.

Good Luck Braulio

like image 161
Braulio Avatar answered Nov 12 '22 23:11

Braulio