Middle Click to close Document tabs

Docking/MDI for WPF Forum

Posted 5 years ago by Scott Currie
Avatar

It's easy enough to add ourselves using the MouseDown event, but it would be cleaner from an MVVM perspective if this was the default behavior or if it could be enabled through a property.  Middle-click to close is the standard behavior for every modern MDI interface I've used, including browsers, so it should be a safe default.

Comments (2)

Answer - Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Scott,

I believe it's already there as TabbedMdiHost.CanDocumentsCloseOnMiddleClick, but it does default to false.


Actipro Software Support

Posted 5 years ago by Scott Currie
Avatar

Thanks.  We're using MVVM, so I was looking for something on the docksite or the dockingwindow.  The TabbedMdiHost property works just fine, though.  I'll delete the behavior.

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.