Close tabs with Middle Button

2 posts, 0 answers
  1. Roberto Vercelli
    Roberto Vercelli avatar
    3 posts
    Member since:
    May 2010

    Posted 23 Jan 2011 Link to this post

    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... 
  2. George
    Admin
    George avatar
    1332 posts

    Posted 27 Jan 2011 Link to this post

    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>>
  3. DevCraft banner
Back to Top