Page view counter
how to hook mouse right click event whitout "windowless=true" ? Subscribe to this thread
Last post 12-26-2008 2:47 AM by CaCO3. 4 replies.
Sort Posts:
12-22-2008 8:22 AM
how to hook mouse right click event whitout "windowless=true" ?

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.

CaCO3

Loading...
Joined on 04-27-2008
Posts 47
12-22-2008 8:24 AM
Re: how to hook mouse right click event whitout "windowless=true" ?

 Sorry you need your silverlight app to be windowless to catch the rightclick event

Silverlight-help
Vb Tips
Space Coast .Net User Group

ken tucker

Loading...
Joined on 12-23-2003
Port St. John, Florida
Posts 1,776
12-22-2008 8:29 AM
Re: how to hook mouse right click event whitout "windowless=true" ?

is there any way to enable IME under windwless mode?

CaCO3

Loading...
Joined on 04-27-2008
Posts 47
12-26-2008 2:30 AM
Re: how to hook mouse right click event whitout "windowless=true" ?

 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.

Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Amanda Wang - MSFT

Loading...
Joined on 04-30-2007
Posts 1,015
12-26-2008 2:47 AM
Re: how to hook mouse right click event whitout "windowless=true" ?

thanks but this tip also need windowless mode,that will disable IME.

CaCO3

Loading...
Joined on 04-27-2008
Posts 47
Microsoft Communities