views:

12

answers:

1

how to add mouserightbuttondown event to stackpanel in silverlight 3

A: 

In Silverlight 3 its quite tricky, probably the best solution all other things being equal is start using Silverlight 4. However I guess you would if you could, so...

Take a look at this blog and in particular the contribution of code fome "scommisso"/

The fundemental idea is to enlist the host browsers oncontextmenu event then some hit testing to determine if the mouse is over your stackpanel. Still has limitations and gotchas though.

AnthonyWJones