Silverlight panning scrolling

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
simon
Newbie
Newbie
Posts: 14
Joined: Tue Jan 20, 2009 12:00 am

Silverlight panning scrolling

Post by simon » Fri Jan 29, 2010 6:22 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Silverlight panning scrolling

Post by Sandra » Fri Jan 29, 2010 11:13 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply