Closing Document by middle button click.

Jun 24, 2009 at 10:52 AM

Hi,

In majority of applications that use tabbed document interface, middle mouse click on the tab causes it to close. To add this functionality to AvalonDock add the following line:

ApplicationCommands.Close.InputGestures.Add(new MouseGesture(MouseAction.MiddleClick));

before setting Command Binding for close Close command in to the OnInitialized() method of DocumentPane class.

regards,

Alex.

Jun 25, 2009 at 2:23 PM

Added to latest build, thx, Ado

Oct 22, 2009 at 9:31 PM

First let me say this is a great project!

I'm having a problem where clicking a document tab with the middle mouse button closes the currently active tab, not the one that was clicked.

Is this just me?

Thanks,

Jason

Oct 27, 2009 at 1:19 AM

Roger that