This is a migrated thread and some comments may be shown as answers.

Close tabs with Middle Button

1 Answer 45 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Roberto Vercelli
Top achievements
Rank 1
Roberto Vercelli asked on 23 Jan 2011, 03:34 PM
Hi!
I need to close the tabs of the Docking panel with the middle mouse button. It's working in the same way in VS2010 for example. 
Is this possible? I searched in the documentation and I found that there is a Mouse static class that may help. I tried to use it but the Middle Button doesn't fire any event. This is the code I'm using:

RadPane pane = new RadPane { CanUserClose = true, Content = indicator };
Telerik.Windows.Input.Mouse.AddMouseDownHandler(pane, new EventHandler<Telerik.Windows.Input.MouseButtonEventArgs>(OnMiddleMouseDown));

Please notice that with this code the Handler is correctly called when I use left and right mouse buttons... 

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 27 Jan 2011, 03:50 PM
Hi Roberto,


Unfortunately, it is not supported to handle middle mouse button. Sorry for any inconvenience caused.


Regards,
George
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Docking
Asked by
Roberto Vercelli
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or