Skip to main content
Home Forums Silverlight Programming Programming with JavaScript RIghtClick Event
17 replies. Latest Post by RadiateLogic on October 14, 2007.
(0)
AmrElsehemy
Member
2 points
3 Posts
05-01-2007 6:55 AM |
Is there any work around to get the right click event on an object,
is it going to be supported in release versions?
Thanks
gerard1234
112 points
61 Posts
05-02-2007 7:28 AM |
Hello
When I do a RIghtClick on my mouse in a example of the new release of Silverlight I get an "pop-up" where I can click on with the text : "About Microsoft Silverlight"and the link behind: http://www.microsoft.com/SILVERLIGHT/
Is it possible to disable this function? can't find where it is in the source code.
Bye
luisabreu
Participant
1676 points
612 Posts
05-02-2007 7:38 AM |
hello.
the last time i asked, the answer was no.
05-02-2007 9:19 AM |
So when you make something with SilverLight for a costumer on a site or something, he always get that alert when he does the right mouse click?please, dont let it be.And also when you do full screen, now you see your ip adres when you've got your SilverLight example on a webserver.
Kevgor
224 points
77 Posts
05-02-2007 12:32 PM |
Hi Gerard1234
I had a discussion with Barak Cohen about the right click behaviour. Right now in latest Silverlight release, you get a small context menu with one item "About Silverlight". Barak has said that MS is looking for input on whether the content menu should be programmable, in the sense that you could add your own menu items. I don't think there's going to be a "onRightMouseDown, 'move, 'enter, 'leave and 'up" set of events.
Mark Rid...
Contributor
2357 points
273 Posts
05-02-2007 2:16 PM |
I had responded to a post similar to this on the msdn forums (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1044903&SiteID=1 and http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1529091&SiteID=1) – In 1.0 there won't be support for right mouse click or context menu events. We also will not have support in 1.0 for customizing the context menu. We are looking for ways to provide related events or customization of the context menu in future versions.-markProgram ManagerMicrosoftThis post is provided "as-is"
JakeOnTh...
8 points
4 Posts
05-02-2007 4:39 PM |
Why would we NOT want context menus? I'm very surprised they aren't already supported. Could you give an explanation as to why context menu support was left out?
Jake
05-02-2007 6:50 PM |
Thanks for the feedback. It's not that users don't want context menu, just that we had to prioritize our feature set for 1.0 and 1.1. A lot of DHTML web sites use other means to expose context options – things like fly-over links where a option UI expands out. While Flash has the ability to customize the context menu I personally don't like that you can't style the context menu to have the look and feel of your app. We want to ensure that what we provide meets the needs of our users, so we want your feedback! -markProgram ManagerMicrosoftThis post is provided "as-is"
05-02-2007 7:00 PM |
I would venture to guess the reason context menus are not widely used is because they're difficult to do with DHTML. Unless one is using a DHTML/AJAX toolkit that provides menu controls context menus aren't worth the pain.
However.. if one were using a super cool toolkit like, oh, say Silverlight then one would definitely want to offer context menus to their users.
I want to use Silverlight in a sophisticated GIS/mapping application but I need context menus first.
CJCraft.com
50 points
18 Posts
05-19-2007 9:07 PM |
Thanks, this would be useful. Right mouse click is a nice feature to have, and a decent limitation to lose.
Thanks,
pstatho
39 points
21 Posts
06-30-2007 8:37 AM |
One of the touted uses for Silverlight is RIA. Many "average" users have gotten used to right-click to accomplish tasks and when they will see these rich applications they will intuitively want to right-click and expect a context menu.
I understand if it doesn't make it in 1.0, but it really should be there for 1.1.
Seriously, can you imagine right-clicking in a desktop app and seeing About Windows XP/Vista or About OS/X? Users do not care about the underlying technology. You can provide a function and the let developer call a Silverlight.ShowAbout() for debugging puposes.
Here's to hoping.
Perry
forci
351 points
275 Posts
07-02-2007 3:23 AM |
I really want to see events listeners: mouseRightButtonDown, mouseRightButtonClick, mouseRightButtonUp, mouseRightButtonMove.
And i am pretty sure, that many developers want that feature.
And may i ask what about mouseMiddleButtonDown, mouseMiddleButtonClick, mouseMiddleButtonUp, mouseMiddleButtonUp, mouseMiddleButtonMove.
And it would be nice to see mouseScrollUp and mouseScrollDown.
And speaking of mouse. Could you please add more mouse cursors to SilverLight.
dharmesh...
4 points
14 Posts
08-18-2007 7:21 AM |
Hi!
I want to have DoubleClick event raised for an object(i.e. own javascript function to handle doubleclick event). I m useing Silverlight 1.0.
And one more thing is i want open a Wizard on double click event.Thx
naveenku...
52 points
28 Posts
10-12-2007 2:34 AM |
hello friends,
i only want keyboard support in fullscreen mode
ddobbs-v...
66 points
45 Posts
10-12-2007 10:11 AM |
I'd also like to see menu support for right click, and not just adding items to the existing gray menu like Flash does (although at least they offer this functionality) but having a menu that's able to be styled however one wishes with xaml.
Direct Silverlight support for double click, mouse wheel (not thru Javascript workarounds) and a middle mouse button should be included as well if Silverlight is really meant for making world class RIA's. Also mouse hide/custom cursor replacement. I could go on and on with feature requests but I won't. Does anyone know if there is a place where one can submit feature requests? Maybe a forum could be added to this site for this. That way MS can get some better metrics on what are considered real priorities for a feature set (umm, like text input support) according to the developers that are using Silverlight.
dandobbs - developer - vectorform - silverlight demos with source code
10-12-2007 8:27 PM |
The best I've seen to date is "fix" from Ken Dopierala Jr. Good and usable workaround, but man it sucks that it's not builtin
http://www.rtlogicsystems.com/Home/tabid/224/EntryID/22/Default.aspx
y_makram
6174 points
1,234 Posts
10-12-2007 9:24 PM |
And unfortunately it does not work well in Firefox
RadiateL...
104 points
44 Posts
10-14-2007 9:38 PM |
It does now, I just updated it. Here is my latest blog entry about how to make it work with Firefox :
http://www.rtlogicsystems.com/Home/tabid/224/EntryID/23/Default.aspx
--- Ken