Skip to main content

Microsoft Silverlight

Unanswered Question how to hook mouse right click event whitout "windowless=true" ?RSS Feed

(0)

CaCO3
CaCO3

Member

Member

54 points

47 Posts

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.

ken tucker
ken tucker

All-Star

All-Star

16276 points

2,479 Posts

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

CaCO3
CaCO3

Member

Member

54 points

47 Posts

Re: how to hook mouse right click event whitout "windowless=true" ?

is there any way to enable IME under windwless mode?

Amanda Wang - MSFT
Amanda W...

All-Star

All-Star

17241 points

1,466 Posts

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.

CaCO3
CaCO3

Member

Member

54 points

47 Posts

Re: how to hook mouse right click event whitout "windowless=true" ?

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

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities