Skip to main content
Home Forums Silverlight Programming Programming with .NET - General how to hook mouse right click event whitout "windowless=true" ?
4 replies. Latest Post by CaCO3 on December 26, 2008.
(0)
CaCO3
Member
54 points
47 Posts
12-22-2008 8:22 AM |
my application need right click support(more than display a custom context menu),and it also need IME support too.set windowless to true will enable silverlight application hook html events with in its code,but this will disable IME. so now i`m trying to hook mouse events with javascript in the .aspx host,then call the silverlight methods. i`m following this ,but it just doesn`t work. i put the script inside <Body>,but they seems never be executed.and i could not found something like "WebApplication" and "[Scriptable]",i instead them with "HtmlPage" and "[ScriptableMemberAttribute]".but it still doesn`t work.the system context menu for silverlight and html will always pop up whatever i do.
please help.
ken tucker
All-Star
16276 points
2,479 Posts
12-22-2008 8:24 AM |
Sorry you need your silverlight app to be windowless to catch the rightclick event
12-22-2008 8:29 AM |
is there any way to enable IME under windwless mode?
Amanda W...
17241 points
1,466 Posts
12-26-2008 2:30 AM |
Hi,
You can try to refer this link: http://silverlight.net/blogs/msnow/archive/2008/07/01/tip-of-the-day-14-how-to-right-click-on-a-silverlight-application.aspx
It works for us.
12-26-2008 2:47 AM |
thanks but this tip also need windowless mode,that will disable IME.