How to close document window via keyboard?

Docking/MDI for WPF Forum

Posted 11 years ago by Brad Salmon
Version: 12.2.0580

I would like to know if there is a way to allow a user to close a tabbed document window without having to use the mouse and click on the "x" button.  For a ToolWindow I am able to use "Shift+Esc", but that doesn't seem to work for document window.



Comments (2)

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

Hi Brad,

Yes, Ctrl+F4 will close the current document.

Actipro Software Support

Posted 11 years ago by Alan McCormick

Another option is to enable mouse middle click to close the tab (it's easier then clicking the little X), and it is standard among a lot of applications such as web browsers.

<docking:TabbedMdiHost x:Name="tabbedMdiHost" CanDocumentsCloseOnMiddleClick="True">
The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.