Page 1 of 1

Silverlight panning scrolling

Posted: Fri Jan 29, 2010 6:22 am
by 13051546
Hi guys, im wondering if the scrolling/panning in silverlight can be enabled to accept right mouse clicks.

chart.Zoom.Allow = false;
chart.Panning.Allow = ScrollModes.Both;
chart.Panning.MouseButton = System.Windows.Browser.MouseButtons.Left;

you can set the mouse button to right, but it seems to be ignored, infact, they are all ignored except for left mouse...

this event can be captured using silverlight, but it seems the component only allows events for left mouse down etc. there are no right mouse events to capture in the control?!

is there a way i can capture a right click event and enable scrolling/panning with the right mouse button whilst still maintaining left mouse for zooming? ie. winforms.

Re: Silverlight panning scrolling

Posted: Fri Jan 29, 2010 11:13 am
by 10050769
Hello simon,

I think that is a limitation of version of Silverlight3.0, because doesn't contemplate functionality of Mouse Button Right could lead of Mouse Button Left, as explained in next links: http://mtaulty.com/CommunityServer/blog ... pport.aspx and http://www.vectorlight.net/tutorials/si ... utton.aspx. Also,as the article says the new Silverlight 4 beta limitation it's solved.I recommend if you want works with Mouse Button Right see next web, where you can download last version of Silverlight 4 beta.

I hope will helps.

Thanks,